activity_theme.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".ThemeActivity">
  8. <RadioGroup
  9. android:id="@+id/themeRadioGroup"
  10. android:layout_width="156dp"
  11. android:layout_height="120dp"
  12. app:layout_constraintBottom_toTopOf="@+id/themeStatus"
  13. app:layout_constraintEnd_toEndOf="parent"
  14. app:layout_constraintHorizontal_bias="0.5"
  15. app:layout_constraintStart_toStartOf="parent"
  16. app:layout_constraintTop_toTopOf="parent">
  17. <RadioButton
  18. android:id="@+id/radioButtonDefault"
  19. android:layout_width="match_parent"
  20. android:layout_height="40dp" />
  21. <RadioButton
  22. android:id="@+id/radioButtonDark"
  23. android:layout_width="match_parent"
  24. android:layout_height="40dp" />
  25. <RadioButton
  26. android:id="@+id/radioButtonLight"
  27. android:layout_width="match_parent"
  28. android:layout_height="40dp" />
  29. </RadioGroup>
  30. <TextView
  31. android:id="@+id/themeStatus"
  32. android:layout_width="91dp"
  33. android:layout_height="56dp"
  34. android:layout_marginBottom="16dp"
  35. app:layout_constraintBottom_toBottomOf="parent"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. app:layout_constraintHorizontal_bias="0.5"
  38. app:layout_constraintStart_toStartOf="parent"
  39. app:layout_constraintTop_toBottomOf="@+id/themeRadioGroup" />
  40. </androidx.constraintlayout.widget.ConstraintLayout>