|
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:title="@string/settings" |
21 | | - app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> |
22 | | - |
23 | | - </com.google.android.material.appbar.AppBarLayout> |
| 12 | + android:layout_height="?attr/actionBarSize" |
| 13 | + android:background="@color/color_primary" |
| 14 | + app:title="@string/settings" |
| 15 | + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> |
24 | 16 |
|
25 | 17 | <androidx.core.widget.NestedScrollView |
26 | 18 | android:id="@+id/settings_nested_scrollview" |
27 | 19 | android:layout_width="match_parent" |
28 | 20 | android:layout_height="match_parent" |
| 21 | + android:layout_marginTop="?attr/actionBarSize" |
29 | 22 | android:fillViewport="true" |
30 | | - android:scrollbars="none" |
31 | | - app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| 23 | + android:scrollbars="none"> |
32 | 24 |
|
33 | 25 | <LinearLayout |
34 | 26 | android:id="@+id/settings_holder" |
|
37 | 29 | android:orientation="vertical"> |
38 | 30 |
|
39 | 31 | <TextView |
40 | | - android:id="@+id/settings_color_customization_label" |
| 32 | + android:id="@+id/settings_color_customization_section_label" |
41 | 33 | style="@style/SettingsSectionLabelStyle" |
42 | 34 | android:layout_width="match_parent" |
43 | 35 | android:layout_height="wrap_content" |
44 | 36 | android:text="@string/color_customization" /> |
45 | 37 |
|
46 | | - <LinearLayout |
| 38 | + <androidx.constraintlayout.widget.ConstraintLayout |
47 | 39 | android:id="@+id/settings_color_customization_holder" |
| 40 | + style="@style/SettingsHolderTextViewOneLinerStyle" |
48 | 41 | android:layout_width="match_parent" |
49 | | - android:layout_height="wrap_content" |
50 | | - android:layout_margin="@dimen/medium_margin" |
51 | | - android:background="@drawable/section_holder_stroke" |
52 | | - android:orientation="vertical"> |
| 42 | + android:layout_height="wrap_content"> |
53 | 43 |
|
54 | | - <RelativeLayout |
55 | | - android:id="@+id/settings_customize_colors_holder" |
56 | | - style="@style/SettingsHolderTextViewOneLinerStyle" |
57 | | - android:layout_width="match_parent" |
| 44 | + <com.simplemobiletools.commons.views.MyTextView |
| 45 | + android:id="@+id/settings_color_customization_label" |
| 46 | + style="@style/SettingsTextLabelStyle" |
| 47 | + android:layout_width="wrap_content" |
58 | 48 | android:layout_height="wrap_content" |
59 | | - android:background="@drawable/ripple_top_corners"> |
| 49 | + android:text="@string/customize_colors" |
| 50 | + app:layout_constraintStart_toStartOf="parent" |
| 51 | + app:layout_constraintTop_toTopOf="parent" /> |
60 | 52 |
|
61 | | - <com.simplemobiletools.commons.views.MyTextView |
62 | | - android:id="@+id/settings_customize_colors_label" |
63 | | - style="@style/SettingsTextLabelStyle" |
64 | | - android:layout_width="wrap_content" |
65 | | - android:layout_height="wrap_content" |
66 | | - android:text="@string/customize_colors" /> |
| 53 | + </androidx.constraintlayout.widget.ConstraintLayout> |
67 | 54 |
|
68 | | - </RelativeLayout> |
| 55 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 56 | + android:id="@+id/settings_widget_color_customization_holder" |
| 57 | + style="@style/SettingsHolderTextViewOneLinerStyle" |
| 58 | + android:layout_width="match_parent" |
| 59 | + android:layout_height="wrap_content"> |
69 | 60 |
|
70 | | - <RelativeLayout |
71 | | - android:id="@+id/settings_customize_widget_colors_holder" |
72 | | - style="@style/SettingsHolderTextViewStyle" |
73 | | - android:layout_width="match_parent" |
| 61 | + <com.simplemobiletools.commons.views.MyTextView |
| 62 | + android:id="@+id/settings_widget_color_customization_label" |
| 63 | + style="@style/SettingsTextLabelStyle" |
| 64 | + android:layout_width="wrap_content" |
74 | 65 | android:layout_height="wrap_content" |
75 | | - android:background="@drawable/ripple_bottom_corners"> |
| 66 | + android:text="@string/customize_widget_colors" |
| 67 | + app:layout_constraintStart_toStartOf="parent" |
| 68 | + app:layout_constraintTop_toTopOf="parent" /> |
76 | 69 |
|
77 | | - <com.simplemobiletools.commons.views.MyTextView |
78 | | - android:id="@+id/settings_customize_widget_colors_label" |
79 | | - style="@style/SettingsTextLabelStyle" |
80 | | - android:layout_width="wrap_content" |
81 | | - android:layout_height="wrap_content" |
82 | | - android:text="@string/customize_widget_colors" /> |
| 70 | + </androidx.constraintlayout.widget.ConstraintLayout> |
83 | 71 |
|
84 | | - </RelativeLayout> |
85 | | - </LinearLayout> |
| 72 | + <include |
| 73 | + android:id="@+id/settings_color_customization_divider" |
| 74 | + layout="@layout/divider" /> |
86 | 75 |
|
87 | 76 | <TextView |
88 | 77 | android:id="@+id/settings_general_settings_label" |
|
95 | 84 | android:id="@+id/settings_general_settings_holder" |
96 | 85 | android:layout_width="match_parent" |
97 | 86 | android:layout_height="wrap_content" |
98 | | - android:layout_margin="@dimen/medium_margin" |
99 | | - android:background="@drawable/section_holder_stroke" |
100 | 87 | android:orientation="vertical"> |
101 | 88 |
|
102 | 89 | <RelativeLayout |
103 | 90 | android:id="@+id/settings_purchase_thank_you_holder" |
104 | 91 | style="@style/SettingsHolderTextViewStyle" |
105 | 92 | android:layout_width="match_parent" |
106 | | - android:layout_height="wrap_content" |
107 | | - android:background="@drawable/ripple_top_corners"> |
| 93 | + android:layout_height="wrap_content"> |
108 | 94 |
|
109 | 95 | <com.simplemobiletools.commons.views.MyTextView |
110 | 96 | android:id="@+id/settings_purchase_thank_you" |
|
119 | 105 | android:id="@+id/settings_use_english_holder" |
120 | 106 | style="@style/SettingsHolderCheckboxStyle" |
121 | 107 | android:layout_width="match_parent" |
122 | | - android:layout_height="wrap_content" |
123 | | - android:background="@drawable/ripple_background"> |
| 108 | + android:layout_height="wrap_content"> |
124 | 109 |
|
125 | 110 | <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
126 | 111 | android:id="@+id/settings_use_english" |
|
135 | 120 | android:id="@+id/settings_language_holder" |
136 | 121 | style="@style/SettingsHolderTextViewStyle" |
137 | 122 | android:layout_width="match_parent" |
138 | | - android:layout_height="wrap_content" |
139 | | - android:background="@drawable/ripple_background"> |
| 123 | + android:layout_height="wrap_content"> |
140 | 124 |
|
141 | 125 | <com.simplemobiletools.commons.views.MyTextView |
142 | 126 | android:id="@+id/settings_language_label" |
|
159 | 143 | android:id="@+id/settings_turn_flashlight_on_holder" |
160 | 144 | style="@style/SettingsHolderCheckboxStyle" |
161 | 145 | android:layout_width="match_parent" |
162 | | - android:layout_height="wrap_content" |
163 | | - android:background="@drawable/ripple_background"> |
| 146 | + android:layout_height="wrap_content"> |
164 | 147 |
|
165 | 148 | <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
166 | 149 | android:id="@+id/settings_turn_flashlight_on" |
|
175 | 158 | android:id="@+id/settings_force_portrait_holder" |
176 | 159 | style="@style/SettingsHolderCheckboxStyle" |
177 | 160 | android:layout_width="match_parent" |
178 | | - android:layout_height="wrap_content" |
179 | | - android:background="@drawable/ripple_background"> |
| 161 | + android:layout_height="wrap_content"> |
180 | 162 |
|
181 | 163 | <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
182 | 164 | android:id="@+id/settings_force_portrait" |
|
191 | 173 | android:id="@+id/settings_bright_display_holder" |
192 | 174 | style="@style/SettingsHolderCheckboxStyle" |
193 | 175 | android:layout_width="match_parent" |
194 | | - android:layout_height="wrap_content" |
195 | | - android:background="@drawable/ripple_background"> |
| 176 | + android:layout_height="wrap_content"> |
196 | 177 |
|
197 | 178 | <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
198 | 179 | android:id="@+id/settings_bright_display" |
|
207 | 188 | android:id="@+id/settings_sos_holder" |
208 | 189 | style="@style/SettingsHolderCheckboxStyle" |
209 | 190 | android:layout_width="match_parent" |
210 | | - android:layout_height="wrap_content" |
211 | | - android:background="@drawable/ripple_background"> |
| 191 | + android:layout_height="wrap_content"> |
212 | 192 |
|
213 | 193 | <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
214 | 194 | android:id="@+id/settings_sos" |
|
223 | 203 | android:id="@+id/settings_stroboscope_holder" |
224 | 204 | style="@style/SettingsHolderCheckboxStyle" |
225 | 205 | android:layout_width="match_parent" |
226 | | - android:layout_height="wrap_content" |
227 | | - android:background="@drawable/ripple_bottom_corners"> |
| 206 | + android:layout_height="wrap_content"> |
228 | 207 |
|
229 | 208 | <com.simplemobiletools.commons.views.MyAppCompatCheckbox |
230 | 209 | android:id="@+id/settings_stroboscope" |
|
0 commit comments