diff options
author | Danny Epstein <depstein@google.com> | 2015-10-20 10:04:27 -0700 |
---|---|---|
committer | Danny Epstein <depstein@google.com> | 2015-10-20 15:15:42 -0700 |
commit | 51f646b19dfbe663fcd2ea78d10fd2813c4d20f8 (patch) | |
tree | c976848787f4183609b9a32f48fd1fc0fd5a6d69 /res/layout-watch | |
parent | dc40bd77b1ab709de9d705c88f56ff61d618ed5c (diff) | |
download | android_packages_apps_PackageInstaller-51f646b19dfbe663fcd2ea78d10fd2813c4d20f8.tar.gz android_packages_apps_PackageInstaller-51f646b19dfbe663fcd2ea78d10fd2813c4d20f8.tar.bz2 android_packages_apps_PackageInstaller-51f646b19dfbe663fcd2ea78d10fd2813c4d20f8.zip |
Reduce the top padding when message isn't at top.
If either the page number or an icon is shown above the message,
reduce the top padding on round screens.
Bug: 24961379
Change-Id: Iec9193e3bbdd8ac607743cd0010f2331edbebc81
Diffstat (limited to 'res/layout-watch')
-rw-r--r-- | res/layout-watch/confirmation_dialog.xml | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/res/layout-watch/confirmation_dialog.xml b/res/layout-watch/confirmation_dialog.xml index 32e0657d..ea25b6b4 100644 --- a/res/layout-watch/confirmation_dialog.xml +++ b/res/layout-watch/confirmation_dialog.xml @@ -33,21 +33,28 @@ android:layout_height="wrap_content" android:paddingTop="@dimen/conf_diag_content_padding_top"> - <TextView - android:id="@+id/current_page_text" - android:layout_width="wrap_content" + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center" - android:layout_marginTop="@dimen/grant_permissions_app_breadcrumb_margin_top" - android:textAppearance="@style/GrantPermissions.BreadcrumbText" /> + android:minHeight="@dimen/conf_diag_min_space_above_message" + android:gravity="bottom"> + <TextView + android:id="@+id/current_page_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_marginTop="@dimen/grant_permissions_app_breadcrumb_margin_top" + android:textAppearance="@style/GrantPermissions.BreadcrumbText" /> - <ImageView - android:id="@+id/icon" - android:layout_width="@dimen/grant_permissions_app_icon_size" - android:layout_height="@dimen/grant_permissions_app_icon_size" - android:tint="@color/grant_permissions_app_color" - android:layout_gravity="center" - android:layout_marginTop="@dimen/grant_permissions_app_icon_margin_top"/> + <ImageView + android:id="@+id/icon" + android:layout_width="@dimen/grant_permissions_app_icon_size" + android:layout_height="@dimen/grant_permissions_app_icon_size" + android:tint="@color/grant_permissions_app_color" + android:layout_gravity="center_horizontal" + android:layout_marginTop="@dimen/grant_permissions_app_icon_margin_top"/> + </LinearLayout> <TextView android:id="@+id/message" |