Vertically center adjacent buttons in App Info screen.

Also reduce the min width of the buttons because the horizontal space
available has reduced.

Bug: 5156394
Change-Id: Ib7adfa208565503bbf537cb469e7d8feded2c5b8
This commit is contained in:
Amith Yamasani
2011-08-19 14:12:53 -07:00
parent e1246c5263
commit da3cabca76

View File

@@ -29,9 +29,10 @@
android:orientation="horizontal">
<Button
android:id="@+id/left_button"
android:layout_width="150dip"
android:layout_width="140dip"
android:layout_weight="0.4"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"/>
<!-- Spacer -->
<View
android:id="@+id/buttons_spacer_left"
@@ -41,8 +42,9 @@
android:layout_weight="0.2" />
<Button
android:id="@+id/right_button"
android:layout_width="150dip"
android:layout_width="140dip"
android:text="@string/cancel"
android:layout_weight="0.4"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"/>
</LinearLayout>