From e7f4fa98889cdce26307843f76b2631add98193b Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Wed, 29 Oct 2014 15:34:38 -0700 Subject: [PATCH] Bug 1082110 - Polish appearance of new reading list style. r=mcomella --- mobile/android/base/home/ReadingListRow.java | 2 -- .../base/locales/en-US/android_strings.dtd | 4 +-- .../layout/reading_list_item_row.xml | 5 ++- .../layout/reading_list_row_view.xml | 33 +++++++++++-------- .../resources/values-large-v11/dimens.xml | 3 ++ .../resources/values-large-v11/styles.xml | 7 ++++ .../base/resources/values-v16/styles.xml | 6 ---- .../android/base/resources/values/dimens.xml | 7 +++- .../android/base/resources/values/styles.xml | 4 +-- mobile/android/base/strings.xml.in | 2 +- 10 files changed, 42 insertions(+), 31 deletions(-) diff --git a/mobile/android/base/home/ReadingListRow.java b/mobile/android/base/home/ReadingListRow.java index 55892f5d613..66965a8cbc6 100644 --- a/mobile/android/base/home/ReadingListRow.java +++ b/mobile/android/base/home/ReadingListRow.java @@ -43,8 +43,6 @@ public class ReadingListRow extends LinearLayout { LayoutInflater.from(context).inflate(R.layout.reading_list_row_view, this); - setOrientation(LinearLayout.VERTICAL); - resources = context.getResources(); title = (TextView) findViewById(R.id.title); diff --git a/mobile/android/base/locales/en-US/android_strings.dtd b/mobile/android/base/locales/en-US/android_strings.dtd index a03d90727b2..9859c01c9d4 100644 --- a/mobile/android/base/locales/en-US/android_strings.dtd +++ b/mobile/android/base/locales/en-US/android_strings.dtd @@ -360,10 +360,10 @@ size. --> - - + + android:layout_height="@dimen/reading_list_row_height" + android:layout_gravity="center_vertical"/> diff --git a/mobile/android/base/resources/layout/reading_list_row_view.xml b/mobile/android/base/resources/layout/reading_list_row_view.xml index 2ec1abf4883..3d238161c3b 100644 --- a/mobile/android/base/resources/layout/reading_list_row_view.xml +++ b/mobile/android/base/resources/layout/reading_list_row_view.xml @@ -6,29 +6,34 @@ + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:paddingLeft="@dimen/reading_list_row_padding_left" + android:paddingRight="@dimen/reading_list_row_padding_right" + android:orientation="vertical" + android:gravity="center_vertical"> + android:id="@+id/excerpt" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/Widget.ReadingListRow.Description" /> + android:id="@+id/read_time" + android:layout_width="64dp" + android:layout_height="match_parent" + android:gravity="center" + style="@style/Widget.ReadingListRow.ReadTime" /> diff --git a/mobile/android/base/resources/values-large-v11/dimens.xml b/mobile/android/base/resources/values-large-v11/dimens.xml index 039f8b1a4e4..4c8abc9b08f 100644 --- a/mobile/android/base/resources/values-large-v11/dimens.xml +++ b/mobile/android/base/resources/values-large-v11/dimens.xml @@ -11,4 +11,7 @@ 26sp 200dp + 96dp + 15dp + diff --git a/mobile/android/base/resources/values-large-v11/styles.xml b/mobile/android/base/resources/values-large-v11/styles.xml index 077058c48af..4ef0fddcdd0 100644 --- a/mobile/android/base/resources/values-large-v11/styles.xml +++ b/mobile/android/base/resources/values-large-v11/styles.xml @@ -132,6 +132,13 @@ + - - diff --git a/mobile/android/base/strings.xml.in b/mobile/android/base/strings.xml.in index 7ee92245e48..955a5db4107 100644 --- a/mobile/android/base/strings.xml.in +++ b/mobile/android/base/strings.xml.in @@ -294,7 +294,7 @@ &site_settings_no_settings; &reading_list_added; - &reading_list_time_minutes; + &reading_list_time_minutes2; &reading_list_time_over_an_hour; &page_action_dropmarker_description;