Skip to content

Commit 4a47be3

Browse files
authored
Merge pull request #72 from seadowg/feature/optional-launch-home
Add setting to show Home on launch
2 parents 2050027 + 1691058 commit 4a47be3

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

androidApp/main/app/src/main/res/layout/fragment_preferences_appearance.xml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -126,68 +126,18 @@
126126
app:layout_constraintStart_toStartOf="parent"
127127
app:layout_constraintTop_toTopOf="@id/switchExtraDarkTitle" />
128128

129-
<TextView
130-
android:id="@+id/navigationTitle"
131-
style="@style/TextTitle"
132-
android:layout_width="0dp"
133-
android:layout_height="wrap_content"
134-
android:layout_marginStart="24dp"
135-
android:layout_marginTop="40dp"
136-
android:layout_marginEnd="24dp"
137-
android:text="@string/pref_navigation_title"
138-
app:layout_constraintEnd_toEndOf="parent"
139-
app:layout_constraintStart_toStartOf="parent"
140-
app:layout_constraintTop_toBottomOf="@id/switchExtraDark" />
141-
142-
<TextView
143-
android:id="@+id/switchShowHomeOnLaunchTitle"
144-
style="@style/TextTitle"
145-
android:layout_width="0dp"
146-
android:layout_height="wrap_content"
147-
android:layout_marginStart="24dp"
148-
android:layout_marginEnd="8dp"
149-
android:paddingVertical="24dp"
150-
android:fontFamily="@font/opensans_regular"
151-
android:text="@string/pref_show_home_on_launch_title"
152-
app:layout_constraintEnd_toStartOf="@id/switchShowHomeOnLaunch"
153-
app:layout_constraintStart_toStartOf="parent"
154-
app:layout_constraintTop_toBottomOf="@id/navigationTitle" />
155-
156-
<androidx.appcompat.widget.SwitchCompat
157-
android:id="@+id/switchShowHomeOnLaunch"
158-
android:layout_width="wrap_content"
159-
android:layout_height="wrap_content"
160-
android:layout_marginEnd="24dp"
161-
android:clickable="false"
162-
android:focusable="false"
163-
app:layout_constraintBottom_toBottomOf="@id/switchShowHomeOnLaunchTitle"
164-
app:layout_constraintEnd_toEndOf="parent"
165-
app:layout_constraintTop_toTopOf="@id/switchShowHomeOnLaunchTitle" />
166-
167-
<View
168-
android:id="@+id/switchShowHomeOnLaunchBackground"
169-
android:layout_width="0dp"
170-
android:layout_height="0dp"
171-
android:background="?selectableItemBackground"
172-
android:clickable="true"
173-
android:focusable="true"
174-
app:layout_constraintBottom_toBottomOf="@id/switchShowHomeOnLaunchTitle"
175-
app:layout_constraintEnd_toEndOf="parent"
176-
app:layout_constraintStart_toStartOf="parent"
177-
app:layout_constraintTop_toTopOf="@id/switchShowHomeOnLaunchTitle" />
178-
179129
<TextView
180130
android:id="@+id/accentTitle"
181131
style="@style/TextTitle"
182132
android:layout_width="0dp"
183133
android:layout_height="wrap_content"
184134
android:layout_marginStart="24dp"
185-
android:layout_marginTop="32dp"
135+
android:layout_marginTop="40dp"
186136
android:layout_marginEnd="24dp"
187137
android:text="@string/pref_theme_accent_title"
188138
app:layout_constraintEnd_toEndOf="parent"
189139
app:layout_constraintStart_toStartOf="parent"
190-
app:layout_constraintTop_toBottomOf="@id/switchShowHomeOnLaunch" />
140+
app:layout_constraintTop_toBottomOf="@id/switchExtraDark" />
191141

192142
<HorizontalScrollView
193143
android:id="@+id/scrollView"
@@ -257,18 +207,68 @@
257207

258208
</HorizontalScrollView>
259209

210+
<TextView
211+
android:id="@+id/navigationTitle"
212+
style="@style/TextTitle"
213+
android:layout_width="0dp"
214+
android:layout_height="wrap_content"
215+
android:layout_marginStart="24dp"
216+
android:layout_marginTop="40dp"
217+
android:layout_marginEnd="24dp"
218+
android:text="@string/pref_navigation_title"
219+
app:layout_constraintEnd_toEndOf="parent"
220+
app:layout_constraintStart_toStartOf="parent"
221+
app:layout_constraintTop_toBottomOf="@id/scrollView" />
222+
223+
<TextView
224+
android:id="@+id/switchShowHomeOnLaunchTitle"
225+
style="@style/TextTitle"
226+
android:layout_width="0dp"
227+
android:layout_height="wrap_content"
228+
android:layout_marginStart="24dp"
229+
android:layout_marginEnd="8dp"
230+
android:fontFamily="@font/opensans_regular"
231+
android:paddingVertical="24dp"
232+
android:text="@string/pref_show_home_on_launch_title"
233+
app:layout_constraintEnd_toStartOf="@id/switchShowHomeOnLaunch"
234+
app:layout_constraintStart_toStartOf="parent"
235+
app:layout_constraintTop_toBottomOf="@id/navigationTitle" />
236+
237+
<androidx.appcompat.widget.SwitchCompat
238+
android:id="@+id/switchShowHomeOnLaunch"
239+
android:layout_width="wrap_content"
240+
android:layout_height="wrap_content"
241+
android:layout_marginEnd="24dp"
242+
android:clickable="false"
243+
android:focusable="false"
244+
app:layout_constraintBottom_toBottomOf="@id/switchShowHomeOnLaunchTitle"
245+
app:layout_constraintEnd_toEndOf="parent"
246+
app:layout_constraintTop_toTopOf="@id/switchShowHomeOnLaunchTitle" />
247+
248+
<View
249+
android:id="@+id/switchShowHomeOnLaunchBackground"
250+
android:layout_width="0dp"
251+
android:layout_height="0dp"
252+
android:background="?selectableItemBackground"
253+
android:clickable="true"
254+
android:focusable="true"
255+
app:layout_constraintBottom_toBottomOf="@id/switchShowHomeOnLaunchTitle"
256+
app:layout_constraintEnd_toEndOf="parent"
257+
app:layout_constraintStart_toStartOf="parent"
258+
app:layout_constraintTop_toTopOf="@id/switchShowHomeOnLaunchTitle" />
259+
260260
<TextView
261261
android:id="@+id/tabsTitle"
262262
style="@style/TextTitle"
263263
android:layout_width="0dp"
264264
android:layout_height="wrap_content"
265265
android:layout_marginStart="24dp"
266-
android:layout_marginTop="32dp"
266+
android:layout_marginTop="40dp"
267267
android:layout_marginEnd="24dp"
268268
android:text="@string/pref_library_tabs_title"
269269
app:layout_constraintEnd_toEndOf="parent"
270270
app:layout_constraintStart_toStartOf="parent"
271-
app:layout_constraintTop_toBottomOf="@id/scrollView" />
271+
app:layout_constraintTop_toBottomOf="@id/switchShowHomeOnLaunch" />
272272

273273
<androidx.recyclerview.widget.RecyclerView
274274
android:id="@+id/tabsRecyclerView"

0 commit comments

Comments
 (0)