From 17e9f5221fb6af1b79a0e0b4092ec709bd35b9b9 Mon Sep 17 00:00:00 2001 From: Jonathan Caryl Date: Sat, 12 Aug 2017 22:17:00 +0100 Subject: [PATCH] Switch some hard-coded strings from android:text to tools:text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hard-coded as they’re always replaced at runtime, so better to have them as tools:text --- app/src/main/res/layout/activity_event.xml | 9 +++++---- .../main/res/layout/dialog_repeat_limit_type_picker.xml | 3 ++- app/src/main/res/layout/event_item_day_view.xml | 9 +++++---- app/src/main/res/layout/event_list_item.xml | 9 +++++---- app/src/main/res/layout/event_list_item_widget.xml | 9 +++++---- app/src/main/res/layout/first_row.xml | 6 ++++-- app/src/main/res/layout/first_row_widget.xml | 6 ++++-- 7 files changed, 30 insertions(+), 21 deletions(-) diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index 724f7ea1a..45cb4eca6 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -2,6 +2,7 @@ @@ -98,7 +99,7 @@ android:paddingEnd="@dimen/activity_margin" android:paddingRight="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin" - android:text="January 1 1970" + tools:text="January 1 1970" android:textSize="@dimen/day_text_size"/> @@ -25,7 +26,7 @@ android:layout_marginStart="@dimen/repeat_type_margin_start" android:paddingBottom="@dimen/normal_margin" android:paddingTop="@dimen/medium_margin" - android:text="January 1 1970"/> + tools:text="January 1 1970"/> diff --git a/app/src/main/res/layout/event_list_item.xml b/app/src/main/res/layout/event_list_item.xml index 48553dcb9..10833be4a 100644 --- a/app/src/main/res/layout/event_list_item.xml +++ b/app/src/main/res/layout/event_list_item.xml @@ -1,6 +1,7 @@ diff --git a/app/src/main/res/layout/event_list_item_widget.xml b/app/src/main/res/layout/event_list_item_widget.xml index a6006ad83..902946942 100644 --- a/app/src/main/res/layout/event_list_item_widget.xml +++ b/app/src/main/res/layout/event_list_item_widget.xml @@ -1,6 +1,7 @@ @@ -10,7 +11,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/activity_margin" - android:text="13:00" + tools:text="13:00" android:textSize="@dimen/day_text_size"/> diff --git a/app/src/main/res/layout/first_row.xml b/app/src/main/res/layout/first_row.xml index 1d7df5438..cbd21754a 100644 --- a/app/src/main/res/layout/first_row.xml +++ b/app/src/main/res/layout/first_row.xml @@ -3,6 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools" android:layout_weight="1" android:orientation="horizontal"> @@ -12,8 +13,9 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" - android:text="#" - android:visibility="gone"/> + tools:text="#" + android:visibility="gone" + tools:visibility="visible"/> @@ -12,8 +13,9 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" - android:text="#" - android:visibility="gone"/> + tools:text="#" + android:visibility="gone" + tools:visibility="visible"/>