From 44ff1e1d13447c5a12724fb2ea9d7fa0154cd20d Mon Sep 17 00:00:00 2001 From: Michael Kwan Date: Thu, 28 Jul 2016 17:25:00 -0700 Subject: [PATCH] Resolve issues with AlertDialog layout for watch devices. - Ensure button bar always snaps to bottom - Set message TextAppearance to use Subhead styling - Added additional bottom padding to title panel Bug: 30483771 Change-Id: I515e0096f3dc49b56753b3426f8eda5193d4255c --- ...ro.xml => alert_dialog_title_material.xml} | 7 ++----- ...ro.xml => alert_dialog_title_material.xml} | 8 +++----- .../layout-watch/alert_dialog_material.xml | 6 ++++-- ...tyles_material.xml => config_material.xml} | 13 +++++++++--- .../values-round-watch/config_material.xml | 3 +++ .../values-round-watch/styles_material.xml | 20 ------------------- core/res/res/values-watch/config_material.xml | 3 --- core/res/res/values-watch/styles_material.xml | 8 ++++++++ core/res/res/values/config_material.xml | 3 --- core/res/res/values/styles_material.xml | 2 +- 10 files changed, 31 insertions(+), 42 deletions(-) rename core/res/res/layout-notround-watch/{alert_dialog_header_micro.xml => alert_dialog_title_material.xml} (85%) rename core/res/res/layout-round-watch/{alert_dialog_header_micro.xml => alert_dialog_title_material.xml} (84%) rename core/res/res/values-notround-watch/{styles_material.xml => config_material.xml} (55%) delete mode 100644 core/res/res/values-round-watch/styles_material.xml diff --git a/core/res/res/layout-notround-watch/alert_dialog_header_micro.xml b/core/res/res/layout-notround-watch/alert_dialog_title_material.xml similarity index 85% rename from core/res/res/layout-notround-watch/alert_dialog_header_micro.xml rename to core/res/res/layout-notround-watch/alert_dialog_title_material.xml index fc840d9fa73fa..307c6db91c3a8 100644 --- a/core/res/res/layout-notround-watch/alert_dialog_header_micro.xml +++ b/core/res/res/layout-notround-watch/alert_dialog_title_material.xml @@ -30,12 +30,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@null" /> - + android:layout_height="wrap_content" /> diff --git a/core/res/res/layout-round-watch/alert_dialog_header_micro.xml b/core/res/res/layout-round-watch/alert_dialog_title_material.xml similarity index 84% rename from core/res/res/layout-round-watch/alert_dialog_header_micro.xml rename to core/res/res/layout-round-watch/alert_dialog_title_material.xml index 6f7ae02388a34..027991106c5aa 100644 --- a/core/res/res/layout-round-watch/alert_dialog_header_micro.xml +++ b/core/res/res/layout-round-watch/alert_dialog_title_material.xml @@ -27,12 +27,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@null" /> - + android:layout_height="wrap_content" /> diff --git a/core/res/res/layout-watch/alert_dialog_material.xml b/core/res/res/layout-watch/alert_dialog_material.xml index ce8e20a121879..002dde83cd93c 100644 --- a/core/res/res/layout-watch/alert_dialog_material.xml +++ b/core/res/res/layout-watch/alert_dialog_material.xml @@ -39,7 +39,7 @@ + layout="@layout/alert_dialog_title_material"/> @@ -50,7 +50,8 @@ + - - - diff --git a/core/res/res/values-watch/config_material.xml b/core/res/res/values-watch/config_material.xml index 81b53e71b5d7d..104d122e01d3e 100644 --- a/core/res/res/values-watch/config_material.xml +++ b/core/res/res/values-watch/config_material.xml @@ -29,7 +29,4 @@ true - - - 3 diff --git a/core/res/res/values-watch/styles_material.xml b/core/res/res/values-watch/styles_material.xml index f5735e69347a1..e22862e746728 100644 --- a/core/res/res/values-watch/styles_material.xml +++ b/core/res/res/values-watch/styles_material.xml @@ -89,6 +89,14 @@ please see styles_device_defaults.xml. blocksDescendants + + diff --git a/core/res/res/values/config_material.xml b/core/res/res/values/config_material.xml index a37be837d9f1c..397635f402b1f 100644 --- a/core/res/res/values/config_material.xml +++ b/core/res/res/values/config_material.xml @@ -32,9 +32,6 @@ false - - 1 - true diff --git a/core/res/res/values/styles_material.xml b/core/res/res/values/styles_material.xml index 4435537541934..5e5712af196d4 100644 --- a/core/res/res/values/styles_material.xml +++ b/core/res/res/values/styles_material.xml @@ -1246,7 +1246,7 @@ please see styles_device_defaults.xml.