summaryrefslogtreecommitdiffstats
path: root/res/layout/install_confirm.xml
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2010-03-16 14:22:03 -0500
committerJeff Hamilton <jham@android.com>2010-03-16 14:22:03 -0500
commitad120c5d4ce93e848f7391c966f6c014f8b0a544 (patch)
tree4dea624ac59d71493dfe0e7b92da713b208b919f /res/layout/install_confirm.xml
parentd388aa252071f9132957ebea13239750b65e79a8 (diff)
downloadandroid_packages_apps_PackageInstaller-ad120c5d4ce93e848f7391c966f6c014f8b0a544.tar.gz
android_packages_apps_PackageInstaller-ad120c5d4ce93e848f7391c966f6c014f8b0a544.tar.bz2
android_packages_apps_PackageInstaller-ad120c5d4ce93e848f7391c966f6c014f8b0a544.zip
Use the system standard ButtonBar style as well as the standard medium title bar assest.
Change-Id: I3735873e6f885cfbbd5e0f7731c47e2089941c92
Diffstat (limited to 'res/layout/install_confirm.xml')
-rwxr-xr-xres/layout/install_confirm.xml37
1 files changed, 12 insertions, 25 deletions
diff --git a/res/layout/install_confirm.xml b/res/layout/install_confirm.xml
index 8039e5d3..268a744e 100755
--- a/res/layout/install_confirm.xml
+++ b/res/layout/install_confirm.xml
@@ -72,36 +72,23 @@
<!-- OK confirm and cancel buttons. -->
<LinearLayout
- android:background="@color/title_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:gravity="bottom"
- android:paddingTop="4dip"
- android:paddingLeft="2dip"
- android:paddingRight="2dip"
- android:orientation="horizontal">
- <Button
- android:id="@+id/ok_button"
+ android:orientation="horizontal"
+ style="@android:style/ButtonBar"
+ >
+ <Button android:id="@+id/ok_button"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
android:text="@string/install"
- android:layout_width="150dip"
- android:paddingLeft="6dip"
- android:layout_gravity="left"
- android:layout_weight="0.4"
- android:layout_height="wrap_content"/>
- <!-- Spacer -->
- <View
- android:id="@+id/buttons_spacer_left"
+ />
+
+ <Button android:id="@+id/cancel_button"
android:layout_width="0dip"
android:layout_height="wrap_content"
- android:visibility="gone"
- android:layout_weight="0.2" />
- <Button
- android:id="@+id/cancel_button"
- android:layout_width="150dip"
- android:paddingRight="6dip"
- android:layout_gravity="right"
+ android:layout_weight="1"
android:text="@string/cancel"
- android:layout_weight="0.4"
- android:layout_height="wrap_content"/>
+ />
</LinearLayout>
</LinearLayout>