<?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/settingsFragment" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".SettingsFragment"> <TextView android:id="@+id/brightnessText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32sp" android:text="@string/brightnessControl" android:textSize="20sp" app:layout_constraintEnd_toStartOf="@+id/brightnessCurrent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/brightnessCurrent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16sp" android:layout_marginTop="32dp" android:textSize="20sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/brightnessText" app:layout_constraintTop_toTopOf="parent" /> <SeekBar android:id="@+id/brightnessBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8sp" android:max="100" android:min="0" android:progress="25" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/brightnessText" /> <TextView android:id="@+id/fontSizeText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:text="@string/fontSizeText" android:textSize="20sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/brightnessBar" /> <Button android:id="@+id/smallFontBtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8sp" android:text="@string/smallFont" app:layout_constraintEnd_toStartOf="@+id/defaultFontBtn" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/fontSizeText" /> <Button android:id="@+id/defaultFontBtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8sp" android:text="@string/defaultFont" app:layout_constraintEnd_toStartOf="@+id/largeFontBtn" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/smallFontBtn" app:layout_constraintTop_toBottomOf="@+id/fontSizeText" /> <Button android:id="@+id/largeFontBtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8sp" android:text="@string/largeFont" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/defaultFontBtn" app:layout_constraintTop_toBottomOf="@+id/fontSizeText" /> <TextView android:id="@+id/buttonSoundsText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32sp" android:text="@string/clickSounds" android:textSize="20sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/defaultFontBtn" /> <ToggleButton android:id="@+id/soundToggleBtn" style="@style/Widget.MaterialComponents.Button.OutlinedButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:checked="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/buttonSoundsText" /> <TextView android:id="@+id/edtUsersText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:text="@string/manageUsers" android:textSize="20sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/soundToggleBtn" /> <Button android:id="@+id/manageUsers" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8sp" android:text="@string/editDelete" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/addUsers" app:layout_constraintTop_toBottomOf="@+id/edtUsersText" /> <Button android:id="@+id/addUsers" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="@string/addButton" app:layout_constraintEnd_toStartOf="@+id/manageUsers" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/edtUsersText"> </Button> <Button android:id="@+id/newDb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="@string/reloadBtn" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/newDbText" /> <TextView android:id="@+id/newDbText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:textSize="20sp" android:text="@string/reloadDbTv" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/manageUsers" /> </androidx.constraintlayout.widget.ConstraintLayout>