activity_settings.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.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=".SettingsActivity">
  8. <TableLayout
  9. android:layout_width="0dp"
  10. android:layout_height="0dp"
  11. app:layout_constraintBottom_toBottomOf="parent"
  12. app:layout_constraintEnd_toEndOf="parent"
  13. app:layout_constraintStart_toStartOf="parent"
  14. app:layout_constraintTop_toTopOf="parent">
  15. <TableRow
  16. android:layout_width="fill_parent"
  17. android:layout_height="match_parent"
  18. android:padding="10dp">
  19. <TextView
  20. android:id="@+id/textView9"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:text="Settings1" />
  24. <Switch
  25. android:id="@+id/switch1"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="right"
  29. android:layout_weight="1" />
  30. </TableRow>
  31. <TableRow
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. android:padding="10dp">
  35. <TextView
  36. android:id="@+id/textView10"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="Settings2" />
  40. <Switch
  41. android:id="@+id/switch2"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_weight="1" />
  45. </TableRow>
  46. <TableRow
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:padding="10dp">
  50. <TextView
  51. android:id="@+id/textView11"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:text="Settings3" />
  55. <Switch
  56. android:id="@+id/switch3"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_weight="1" />
  60. </TableRow>
  61. <TableRow
  62. android:layout_width="match_parent"
  63. android:layout_height="match_parent"
  64. android:padding="10dp">
  65. <TextView
  66. android:id="@+id/textView12"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="Settings4" />
  70. <Switch
  71. android:id="@+id/switch4"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_weight="1" />
  75. </TableRow>
  76. </TableLayout>
  77. </android.support.constraint.ConstraintLayout>