|
@@ -0,0 +1,139 @@
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
+ android:id="@+id/frameLayout"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ tools:context=".ui.main.SettingsFragment">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/textView3"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
|
+ android:layout_marginTop="32dp"
|
|
|
|
|
+ android:text="@string/settings_title"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:id="@+id/addButton"
|
|
|
|
|
+ style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
|
|
+ android:text="@string/settings_button_add"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/textView8"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/textView8"
|
|
|
|
|
+ app:layout_constraintVertical_bias="0.31" />
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
+ android:id="@+id/settingsAppList"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView8"
|
|
|
|
|
+ tools:listitem="@layout/settings_apps_list_item" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/textView2"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="24dp"
|
|
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
|
|
+ android:text="@string/settings_text_use_24_hour_clock"
|
|
|
|
|
+ android:textAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
|
+ android:textSize="24sp"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView3" />
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.appcompat.widget.AppCompatCheckBox
|
|
|
|
|
+ android:id="@+id/clockTypeChecker"
|
|
|
|
|
+ style="@style/Widget.AppCompat.CompoundButton.CheckBox"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:layout_marginEnd="24dp"
|
|
|
|
|
+ android:buttonTint="?android:colorForeground"
|
|
|
|
|
+ android:textAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/textView2" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/textView4"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="@string/settings_text_tap_to_check_between_24_hour_or_12_hour"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/textView2"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:id="@+id/divider"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="1dp"
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
|
|
+ android:background="?android:attr/listDivider"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView4" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/changeThemeText"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="24dp"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:text="@string/main_options_change_theme"
|
|
|
|
|
+ android:textAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
|
+ android:textSize="24sp"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/divider" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/textView7"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="@string/settings_text_tap_to_change_app_theme"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/changeThemeText"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/changeThemeText" />
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:id="@+id/divider2"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="1dp"
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
|
|
+ android:background="?android:attr/listDivider"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView7" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/textView8"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="24dp"
|
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
|
+ android:text="@string/settings_text_home_screen_apps"
|
|
|
|
|
+ android:textAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
|
+ android:textSize="24sp"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/divider2" />
|
|
|
|
|
+
|
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|