From a137ceac949715f1fe552b3c124a719cc5a4d7d1 Mon Sep 17 00:00:00 2001 From: perlajarillo Date: Sat, 13 Oct 2018 13:25:12 -0400 Subject: [PATCH 1/4] Making use of styles.xml rather than formatting every view --- .../src/main/res/layout/activity_about.xml | 169 +---- .../src/main/res/layout/activity_issue.xml | 158 +--- .../src/main/res/layout/activity_location.xml | 79 +- .../app/src/main/res/layout/activity_main.xml | 120 +-- .../src/main/res/layout/activity_rep_call.xml | 170 +---- .../src/main/res/layout/activity_settings.xml | 6 +- .../src/main/res/layout/activity_stats.xml | 78 +- .../src/main/res/layout/activity_tutorial.xml | 6 +- .../main/res/layout/contact_stat_textview.xml | 14 +- .../res/layout/empty_issues_address_view.xml | 30 +- .../res/layout/empty_issues_search_view.xml | 28 +- .../src/main/res/layout/empty_issues_view.xml | 28 +- .../res/layout/field_office_list_item.xml | 26 +- .../app/src/main/res/layout/filter_item.xml | 18 +- .../src/main/res/layout/issue_search_box.xml | 13 +- 5calls/app/src/main/res/layout/issue_view.xml | 63 +- .../app/src/main/res/layout/item_outcome.xml | 6 +- .../app/src/main/res/layout/licence_view.xml | 6 +- .../src/main/res/layout/load_more_view.xml | 20 +- 5calls/app/src/main/res/layout/nav_header.xml | 17 +- .../app/src/main/res/layout/rep_list_view.xml | 63 +- .../res/layout/time_preference_dialog.xml | 6 +- .../src/main/res/layout/tutorial_item_1.xml | 73 +- .../src/main/res/layout/tutorial_item_2.xml | 73 +- .../src/main/res/layout/tutorial_item_3.xml | 71 +- 5calls/app/src/main/res/values/colors.xml | 1 + 5calls/app/src/main/res/values/styles.xml | 683 +++++++++++++++++- 27 files changed, 954 insertions(+), 1071 deletions(-) diff --git a/5calls/app/src/main/res/layout/activity_about.xml b/5calls/app/src/main/res/layout/activity_about.xml index 3f82a63..3b824e9 100644 --- a/5calls/app/src/main/res/layout/activity_about.xml +++ b/5calls/app/src/main/res/layout/activity_about.xml @@ -1,177 +1,76 @@ - + android:background="@color/background_color"> - + + style="@style/tutorialHeadStyle" + android:layout_marginBottom="@dimen/text_layout_marginBottom16" + android:text="@string/about_header" /> + style="@style/paragraphTextStyle" + android:text="@string/about_p1" /> + style="@style/subheadingTutorialStyle" + android:layout_marginBottom="@dimen/text_layout_marginBottom16" + android:text="@string/about_p2" /> + style="@style/paragraphTextStyle" + android:text="@string/about_p3" /> + style="@style/aboutSubtStyle" />