|
6 | 6 | android:layout_width="match_parent" |
7 | 7 | android:layout_height="match_parent"> |
8 | 8 |
|
9 | | - <com.google.android.material.appbar.AppBarLayout |
10 | | - android:id="@+id/settings_app_bar_layout" |
| 9 | + <com.google.android.material.appbar.MaterialToolbar |
| 10 | + android:id="@+id/settings_toolbar" |
11 | 11 | android:layout_width="match_parent" |
12 | | - android:layout_height="wrap_content"> |
13 | | - |
14 | | - <com.google.android.material.appbar.MaterialToolbar |
15 | | - android:id="@+id/settings_toolbar" |
16 | | - android:layout_width="match_parent" |
17 | | - android:layout_height="?attr/actionBarSize" |
18 | | - android:background="@color/color_primary" |
19 | | - app:layout_scrollFlags="scroll|enterAlways" |
20 | | - app:menu="@menu/menu_settings" |
21 | | - app:title="@string/settings" |
22 | | - app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> |
23 | | - |
24 | | - </com.google.android.material.appbar.AppBarLayout> |
| 12 | + android:layout_height="?attr/actionBarSize" |
| 13 | + android:background="@color/color_primary" |
| 14 | + app:menu="@menu/menu_settings" |
| 15 | + app:title="@string/settings" |
| 16 | + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> |
25 | 17 |
|
26 | 18 | <androidx.core.widget.NestedScrollView |
27 | 19 | android:id="@+id/settings_nested_scrollview" |
28 | 20 | android:layout_width="match_parent" |
29 | | - android:layout_height="match_parent" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:layout_marginTop="?attr/actionBarSize" |
30 | 23 | android:fillViewport="true" |
31 | | - android:scrollbars="none" |
32 | | - app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| 24 | + android:scrollbars="none"> |
33 | 25 |
|
34 | 26 | <LinearLayout |
35 | 27 | android:id="@+id/settings_holder" |
|
38 | 30 | android:orientation="vertical"> |
39 | 31 |
|
40 | 32 | <TextView |
41 | | - android:id="@+id/settings_color_customization_label" |
| 33 | + android:id="@+id/settings_color_customization_section_label" |
42 | 34 | style="@style/SettingsSectionLabelStyle" |
43 | 35 | android:layout_width="match_parent" |
44 | 36 | android:layout_height="wrap_content" |
45 | 37 | android:text="@string/color_customization" /> |
46 | 38 |
|
47 | | - <LinearLayout |
| 39 | + <androidx.constraintlayout.widget.ConstraintLayout |
48 | 40 | android:id="@+id/settings_color_customization_holder" |
| 41 | + style="@style/SettingsHolderTextViewOneLinerStyle" |
49 | 42 | android:layout_width="match_parent" |
50 | | - android:layout_height="wrap_content" |
51 | | - android:layout_margin="@dimen/medium_margin" |
52 | | - android:background="@drawable/section_holder_stroke" |
53 | | - android:orientation="vertical"> |
| 43 | + android:layout_height="wrap_content"> |
54 | 44 |
|
55 | | - <RelativeLayout |
56 | | - android:id="@+id/settings_customize_colors_holder" |
57 | | - style="@style/SettingsHolderTextViewOneLinerStyle" |
58 | | - android:layout_width="match_parent" |
| 45 | + <com.simplemobiletools.commons.views.MyTextView |
| 46 | + android:id="@+id/settings_color_customization_label" |
| 47 | + style="@style/SettingsTextLabelStyle" |
| 48 | + android:layout_width="wrap_content" |
59 | 49 | android:layout_height="wrap_content" |
60 | | - android:background="@drawable/ripple_all_corners"> |
| 50 | + android:text="@string/customize_colors" |
| 51 | + app:layout_constraintStart_toStartOf="parent" |
| 52 | + app:layout_constraintTop_toTopOf="parent" /> |
61 | 53 |
|
62 | | - <com.simplemobiletools.commons.views.MyTextView |
63 | | - android:id="@+id/settings_customize_colors_label" |
64 | | - style="@style/SettingsTextLabelStyle" |
65 | | - android:layout_width="wrap_content" |
66 | | - android:layout_height="wrap_content" |
67 | | - android:text="@string/customize_colors" /> |
| 54 | + </androidx.constraintlayout.widget.ConstraintLayout> |
68 | 55 |
|
69 | | - </RelativeLayout> |
70 | | - </LinearLayout> |
| 56 | + <include |
| 57 | + android:id="@+id/settings_color_customization_divider" |
| 58 | + layout="@layout/divider" /> |
71 | 59 |
|
72 | 60 | <TextView |
73 | 61 | android:id="@+id/settings_general_settings_label" |
|
76 | 64 | android:layout_height="wrap_content" |
77 | 65 | android:text="@string/general_settings" /> |
78 | 66 |
|
79 | | - <LinearLayout |
80 | | - android:id="@+id/settings_general_settings_holder" |
| 67 | + <RelativeLayout |
| 68 | + android:id="@+id/settings_purchase_thank_you_holder" |
| 69 | + style="@style/SettingsHolderTextViewOneLinerStyle" |
81 | 70 | android:layout_width="match_parent" |
82 | 71 | android:layout_height="wrap_content" |
83 | | - android:layout_margin="@dimen/medium_margin" |
84 | | - android:background="@drawable/section_holder_stroke" |
85 | | - android:orientation="vertical"> |
| 72 | + android:background="@drawable/ripple_top_corners"> |
86 | 73 |
|
87 | | - <RelativeLayout |
88 | | - android:id="@+id/settings_purchase_thank_you_holder" |
89 | | - style="@style/SettingsHolderTextViewOneLinerStyle" |
90 | | - android:layout_width="match_parent" |
| 74 | + <com.simplemobiletools.commons.views.MyTextView |
| 75 | + android:id="@+id/settings_purchase_thank_you" |
| 76 | + style="@style/SettingsTextLabelStyle" |
| 77 | + android:layout_width="wrap_content" |
91 | 78 | android:layout_height="wrap_content" |
92 | | - android:background="@drawable/ripple_top_corners"> |
| 79 | + android:text="@string/purchase_simple_thank_you" /> |
93 | 80 |
|
94 | | - <com.simplemobiletools.commons.views.MyTextView |
95 | | - android:id="@+id/settings_purchase_thank_you" |
96 | | - style="@style/SettingsTextLabelStyle" |
97 | | - android:layout_width="wrap_content" |
98 | | - android:layout_height="wrap_content" |
99 | | - android:text="@string/purchase_simple_thank_you" /> |
| 81 | + </RelativeLayout> |
100 | 82 |
|
101 | | - </RelativeLayout> |
| 83 | + <RelativeLayout |
| 84 | + android:id="@+id/settings_use_english_holder" |
| 85 | + style="@style/SettingsHolderCheckboxStyle" |
| 86 | + android:layout_width="match_parent" |
| 87 | + android:layout_height="wrap_content" |
| 88 | + android:background="@drawable/ripple_bottom_corners"> |
102 | 89 |
|
103 | | - <RelativeLayout |
104 | | - android:id="@+id/settings_use_english_holder" |
105 | | - style="@style/SettingsHolderCheckboxStyle" |
| 90 | + <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
| 91 | + android:id="@+id/settings_use_english" |
| 92 | + style="@style/SettingsCheckboxStyle" |
106 | 93 | android:layout_width="match_parent" |
107 | 94 | android:layout_height="wrap_content" |
108 | | - android:background="@drawable/ripple_bottom_corners"> |
| 95 | + android:text="@string/use_english_language" /> |
109 | 96 |
|
110 | | - <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
111 | | - android:id="@+id/settings_use_english" |
112 | | - style="@style/SettingsCheckboxStyle" |
113 | | - android:layout_width="match_parent" |
114 | | - android:layout_height="wrap_content" |
115 | | - android:text="@string/use_english_language" /> |
| 97 | + </RelativeLayout> |
116 | 98 |
|
117 | | - </RelativeLayout> |
| 99 | + <RelativeLayout |
| 100 | + android:id="@+id/settings_language_holder" |
| 101 | + style="@style/SettingsHolderTextViewStyle" |
| 102 | + android:layout_width="match_parent" |
| 103 | + android:layout_height="wrap_content" |
| 104 | + android:background="@drawable/ripple_background"> |
118 | 105 |
|
119 | | - <RelativeLayout |
120 | | - android:id="@+id/settings_language_holder" |
121 | | - style="@style/SettingsHolderTextViewStyle" |
122 | | - android:layout_width="match_parent" |
| 106 | + <com.simplemobiletools.commons.views.MyTextView |
| 107 | + android:id="@+id/settings_language_label" |
| 108 | + style="@style/SettingsTextLabelStyle" |
| 109 | + android:layout_width="wrap_content" |
123 | 110 | android:layout_height="wrap_content" |
124 | | - android:background="@drawable/ripple_background"> |
125 | | - |
126 | | - <com.simplemobiletools.commons.views.MyTextView |
127 | | - android:id="@+id/settings_language_label" |
128 | | - style="@style/SettingsTextLabelStyle" |
129 | | - android:layout_width="wrap_content" |
130 | | - android:layout_height="wrap_content" |
131 | | - android:text="@string/language" /> |
132 | | - |
133 | | - <com.simplemobiletools.commons.views.MyTextView |
134 | | - android:id="@+id/settings_language" |
135 | | - style="@style/SettingsTextValueStyle" |
136 | | - android:layout_width="wrap_content" |
137 | | - android:layout_height="wrap_content" |
138 | | - android:layout_below="@+id/settings_language_label" |
139 | | - tools:text="English" /> |
140 | | - |
141 | | - </RelativeLayout> |
142 | | - |
143 | | - <RelativeLayout |
144 | | - android:id="@+id/settings_manage_hidden_icons_holder" |
145 | | - style="@style/SettingsHolderTextViewOneLinerStyle" |
146 | | - android:layout_width="match_parent" |
| 111 | + android:text="@string/language" /> |
| 112 | + |
| 113 | + <com.simplemobiletools.commons.views.MyTextView |
| 114 | + android:id="@+id/settings_language" |
| 115 | + style="@style/SettingsTextValueStyle" |
| 116 | + android:layout_width="wrap_content" |
147 | 117 | android:layout_height="wrap_content" |
148 | | - android:background="@drawable/ripple_bottom_corners"> |
| 118 | + android:layout_below="@+id/settings_language_label" |
| 119 | + tools:text="English" /> |
| 120 | + |
| 121 | + </RelativeLayout> |
149 | 122 |
|
150 | | - <com.simplemobiletools.commons.views.MyTextView |
151 | | - android:id="@+id/settings_manage_hidden_icons" |
152 | | - style="@style/SettingsTextLabelStyle" |
153 | | - android:layout_width="wrap_content" |
154 | | - android:layout_height="wrap_content" |
155 | | - android:text="@string/manage_hidden_icons" /> |
| 123 | + <RelativeLayout |
| 124 | + android:id="@+id/settings_manage_hidden_icons_holder" |
| 125 | + style="@style/SettingsHolderTextViewOneLinerStyle" |
| 126 | + android:layout_width="match_parent" |
| 127 | + android:layout_height="wrap_content" |
| 128 | + android:background="@drawable/ripple_bottom_corners"> |
| 129 | + |
| 130 | + <com.simplemobiletools.commons.views.MyTextView |
| 131 | + android:id="@+id/settings_manage_hidden_icons" |
| 132 | + style="@style/SettingsTextLabelStyle" |
| 133 | + android:layout_width="wrap_content" |
| 134 | + android:layout_height="wrap_content" |
| 135 | + android:text="@string/manage_hidden_icons" /> |
156 | 136 |
|
157 | | - </RelativeLayout> |
158 | | - </LinearLayout> |
| 137 | + </RelativeLayout> |
159 | 138 | </LinearLayout> |
160 | 139 | </androidx.core.widget.NestedScrollView> |
161 | 140 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments