From 8d5a4f1689fcb63439d84d9421e413d482a2c83c Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Thu, 16 Mar 2017 17:21:05 -0700 Subject: [PATCH] Support center alignment Update styles to reference the theme attribute suwGlifHeaderGravity to, directly or indirectly via SuwDescription.Glif. Test: Existing tests pass Bug: 36368632 Change-Id: I6c7c234c32fdd614d4a9cdfabbef05626dad0a93 --- .../fingerprint_enroll_enrolling.xml | 4 ++-- .../fingerprint_enroll_find_sensor.xml | 2 +- res/layout-land/fingerprint_enroll_finish.xml | 4 ++-- ...choose_lock_generic_fingerprint_header.xml | 6 +++--- .../fingerprint_enroll_enrolling_base.xml | 4 ++-- .../fingerprint_enroll_find_sensor_base.xml | 2 +- res/layout/fingerprint_enroll_finish_base.xml | 4 ++-- ...choose_lock_generic_fingerprint_header.xml | 19 ++++++++----------- .../setup_choose_lock_generic_header.xml | 19 ++++++++----------- res/values/styles.xml | 16 ---------------- 10 files changed, 29 insertions(+), 51 deletions(-) diff --git a/res/layout-land/fingerprint_enroll_enrolling.xml b/res/layout-land/fingerprint_enroll_enrolling.xml index 5c4e99b5277..b321519d812 100644 --- a/res/layout-land/fingerprint_enroll_enrolling.xml +++ b/res/layout-land/fingerprint_enroll_enrolling.xml @@ -66,14 +66,14 @@ android:layout_height="wrap_content"> diff --git a/res/layout-land/fingerprint_enroll_finish.xml b/res/layout-land/fingerprint_enroll_finish.xml index 5fc0d731f98..ca1a2d26339 100644 --- a/res/layout-land/fingerprint_enroll_finish.xml +++ b/res/layout-land/fingerprint_enroll_finish.xml @@ -42,14 +42,14 @@ + style="@style/SuwDescription.Glif" /> diff --git a/res/layout/fingerprint_enroll_enrolling_base.xml b/res/layout/fingerprint_enroll_enrolling_base.xml index bd1e2c25590..7f8eb1bee9b 100644 --- a/res/layout/fingerprint_enroll_enrolling_base.xml +++ b/res/layout/fingerprint_enroll_enrolling_base.xml @@ -38,14 +38,14 @@ android:layout_marginTop="@dimen/suw_description_glif_margin_top"> + style="@style/SuwDescription.Glif" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingTop="@dimen/suw_description_glif_margin_top" + android:paddingBottom="@dimen/suw_description_glif_margin_bottom_lists" + android:text="@string/setup_lock_settings_picker_fingerprint_message" /> diff --git a/res/layout/setup_choose_lock_generic_header.xml b/res/layout/setup_choose_lock_generic_header.xml index 9a3547dc841..8875e1fbdd1 100644 --- a/res/layout/setup_choose_lock_generic_header.xml +++ b/res/layout/setup_choose_lock_generic_header.xml @@ -16,14 +16,11 @@ --> + style="@style/SuwDescription.Glif" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingTop="@dimen/suw_description_glif_margin_top" + android:paddingBottom="@dimen/suw_description_glif_margin_bottom_lists" + android:text="@string/setup_lock_settings_picker_message" /> diff --git a/res/values/styles.xml b/res/values/styles.xml index fa40932075c..7edc7398d28 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -312,22 +312,6 @@ 14sp - - - - - -