summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorMichael Kwan <mkwan@google.com>2016-10-24 16:39:11 -0700
committerMichael Kwan <mkwan@google.com>2016-10-24 16:39:11 -0700
commit827b513bf5341118bd8b51878506a113b1a4f9d1 (patch)
tree8f31319af7ae5294fa1f9f5df4df3e45b7cd497d /res
parent3bdca77b5dee5364fc0a6c4e3e394d79d2f73a68 (diff)
downloadandroid_packages_apps_PackageInstaller-827b513bf5341118bd8b51878506a113b1a4f9d1.tar.gz
android_packages_apps_PackageInstaller-827b513bf5341118bd8b51878506a113b1a4f9d1.tar.bz2
android_packages_apps_PackageInstaller-827b513bf5341118bd8b51878506a113b1a4f9d1.zip
Fix icon positioning for AcceptDenyDialog.
Update the layout used in AcceptDenyDialog to match the layout in AlertDialogs. Test: manual inspection Bug: 32315229 Change-Id: I4250f785bc2fbcb3f951e3f066ca71597e565973
Diffstat (limited to 'res')
-rw-r--r--res/layout-watch/accept_deny_dialog.xml27
1 files changed, 15 insertions, 12 deletions
diff --git a/res/layout-watch/accept_deny_dialog.xml b/res/layout-watch/accept_deny_dialog.xml
index 89167cb9..0933a211 100644
--- a/res/layout-watch/accept_deny_dialog.xml
+++ b/res/layout-watch/accept_deny_dialog.xml
@@ -25,26 +25,29 @@
android:orientation="vertical">
<FrameLayout
- android:minHeight="@dimen/diag_preferred_padding"
- android:gravity="top|center_horizontal"
+ android:adjustViewBounds="true"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_width="match_parent">
- <ImageView
- android:id="@android:id/icon"
- android:layout_marginTop="8dp"
+ android:minHeight="@dimen/diag_preferred_padding">
+ <ImageView android:id="@android:id/icon"
+ android:adjustViewBounds="true"
+ android:maxHeight="24dp"
+ android:maxWidth="24dp"
+ android:layout_marginTop="@dimen/screen_percentage_10"
android:layout_marginBottom="8dp"
android:layout_gravity="center_horizontal"
- android:layout_height="20dp"
- android:layout_width="20dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:scaleType="centerInside"
- android:visibility="gone" />
+ android:visibility="gone"
+ android:src="@null" />
</FrameLayout>
- <TextView
- android:id="@android:id/title"
+ <TextView android:id="@android:id/title"
android:gravity="center"
- android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:paddingLeft="@dimen/diag_preferred_padding"
android:paddingRight="@dimen/diag_preferred_padding"
android:textAppearance="@android:style/TextAppearance.Material.Title" />