summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2011-08-19 14:12:53 -0700
committerAmith Yamasani <yamasani@google.com>2011-08-19 14:13:42 -0700
commitda3cabca76f959862767e6213fc6dd9fc1a359fd (patch)
tree344fcd7244b148fdf3cfd548c6907e4c03138381 /res
parente1246c52632adff6623c525958c875690fa996b0 (diff)
downloadpackages_apps_Settings-da3cabca76f959862767e6213fc6dd9fc1a359fd.zip
packages_apps_Settings-da3cabca76f959862767e6213fc6dd9fc1a359fd.tar.gz
packages_apps_Settings-da3cabca76f959862767e6213fc6dd9fc1a359fd.tar.bz2
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
Diffstat (limited to 'res')
-rwxr-xr-xres/layout/two_buttons_panel.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/res/layout/two_buttons_panel.xml b/res/layout/two_buttons_panel.xml
index e90c4a0..e2f57a0 100755
--- a/res/layout/two_buttons_panel.xml
+++ b/res/layout/two_buttons_panel.xml
@@ -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>