From 206a8457102c1a442b95609137998d32cc637974 Mon Sep 17 00:00:00 2001 From: Anna Galusza Date: Fri, 5 Feb 2016 17:52:49 -0800 Subject: [PATCH] Change style of Preview screens (dark borders with "preview" on the bottom). Change-Id: I754a3fd4de47ef74a3a79e410890133de9e0d095 --- res/drawable/preview_seek_bar_outline.xml | 22 +++++ res/layout/font_size_activity.xml | 130 ++++++++++++++--------------- res/layout/font_size_preview.xml | 1 + res/layout/preview_seek_bar_view_pager.xml | 50 +++++++++++ res/layout/screen_zoom_activity.xml | 128 ++++++++++++++-------------- res/layout/screen_zoom_preview_1.xml | 81 ++++++------------ res/layout/screen_zoom_preview_2.xml | 81 ++++++------------ res/values/colors.xml | 4 + 8 files changed, 260 insertions(+), 237 deletions(-) create mode 100644 res/drawable/preview_seek_bar_outline.xml create mode 100644 res/layout/preview_seek_bar_view_pager.xml diff --git a/res/drawable/preview_seek_bar_outline.xml b/res/drawable/preview_seek_bar_outline.xml new file mode 100644 index 0000000000..acf92ef1ed --- /dev/null +++ b/res/drawable/preview_seek_bar_outline.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/res/layout/font_size_activity.xml b/res/layout/font_size_activity.xml index 479a5f5412..85c81be2c1 100644 --- a/res/layout/font_size_activity.xml +++ b/res/layout/font_size_activity.xml @@ -22,79 +22,79 @@ + android:layout_height="wrap_content" > - - - - - + + android:paddingTop="16dp" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> - + - + - - + - + + + + + + + + + diff --git a/res/layout/font_size_preview.xml b/res/layout/font_size_preview.xml index 5f2b10ff68..3959b15c7c 100644 --- a/res/layout/font_size_preview.xml +++ b/res/layout/font_size_preview.xml @@ -17,6 +17,7 @@ + + + + + + + + + + + diff --git a/res/layout/screen_zoom_activity.xml b/res/layout/screen_zoom_activity.xml index 47c6b19c1d..4d3ab39069 100644 --- a/res/layout/screen_zoom_activity.xml +++ b/res/layout/screen_zoom_activity.xml @@ -22,78 +22,78 @@ + android:layout_height="wrap_content" > - - - - - + + android:paddingTop="16dp" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> - + - + - - + - + + + + + + + + + diff --git a/res/layout/screen_zoom_preview_1.xml b/res/layout/screen_zoom_preview_1.xml index 7cdb6639e7..6762590f14 100644 --- a/res/layout/screen_zoom_preview_1.xml +++ b/res/layout/screen_zoom_preview_1.xml @@ -14,72 +14,45 @@ limitations under the License. --> - + + android:layout_height="wrap_content" + android:orientation="vertical"> + android:layout_marginTop="16dp" + android:text="@string/permissions_label" /> - - - - + - - - + android:layout_height="1dp" + android:layout_marginLeft="62dp" + android:layout_marginRight="8dp" + android:background="#36000000" /> - + - - - - - + - + - + - - + diff --git a/res/layout/screen_zoom_preview_2.xml b/res/layout/screen_zoom_preview_2.xml index 7cdb6639e7..6762590f14 100644 --- a/res/layout/screen_zoom_preview_2.xml +++ b/res/layout/screen_zoom_preview_2.xml @@ -14,72 +14,45 @@ limitations under the License. --> - + + android:layout_height="wrap_content" + android:orientation="vertical"> + android:layout_marginTop="16dp" + android:text="@string/permissions_label" /> - - - - + - - - + android:layout_height="1dp" + android:layout_marginLeft="62dp" + android:layout_marginRight="8dp" + android:background="#36000000" /> - + - - - - - + - + - + - - + diff --git a/res/values/colors.xml b/res/values/colors.xml index 579cd9eb7f..1e0927eb02 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -111,4 +111,8 @@ #4285F4 #3367D6 + #fff + + #CC000000 + -- 2.11.0