|
46 | 46 | app:layout_constraintStart_toEndOf="@id/timepicker_button" |
47 | 47 | app:layout_constraintTop_toTopOf="@id/timepicker_button" /> |
48 | 48 |
|
| 49 | + <TextView |
| 50 | + android:id="@+id/time_format_label" |
| 51 | + android:layout_width="0dp" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_marginStart="16dp" |
| 54 | + android:layout_marginLeft="16dp" |
| 55 | + android:layout_marginTop="16dp" |
| 56 | + android:layout_marginEnd="16dp" |
| 57 | + android:layout_marginRight="16dp" |
| 58 | + android:text="@string/time_format_label" |
| 59 | + android:textAlignment="center" |
| 60 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
| 61 | + app:layout_constraintEnd_toEndOf="parent" |
| 62 | + app:layout_constraintStart_toStartOf="parent" |
| 63 | + app:layout_constraintTop_toTopOf="parent" /> |
| 64 | + |
49 | 65 | <com.google.android.material.button.MaterialButtonToggleGroup |
50 | 66 | android:id="@+id/time_format_toggle" |
51 | 67 | android:layout_width="wrap_content" |
52 | 68 | android:layout_height="wrap_content" |
53 | | - android:layout_margin="16dp" |
| 69 | + android:layout_marginTop="8dp" |
54 | 70 | android:orientation="horizontal" |
55 | 71 | app:layout_constraintEnd_toEndOf="parent" |
56 | 72 | app:layout_constraintStart_toStartOf="parent" |
57 | | - app:layout_constraintTop_toTopOf="parent" |
| 73 | + app:layout_constraintTop_toBottomOf="@+id/time_format_label" |
58 | 74 | app:selectionRequired="true" |
59 | 75 | app:singleSelection="true"> |
| 76 | + |
| 77 | + <Button |
| 78 | + android:id="@+id/time_format_system" |
| 79 | + style="?attr/materialButtonOutlinedStyle" |
| 80 | + android:layout_width="wrap_content" |
| 81 | + android:layout_height="wrap_content" |
| 82 | + android:text="@string/time_format_system" /> |
| 83 | + |
60 | 84 | <Button |
61 | 85 | android:id="@+id/time_format_12h" |
62 | 86 | style="?attr/materialButtonOutlinedStyle" |
|
71 | 95 | android:layout_height="wrap_content" |
72 | 96 | android:text="@string/time_format_24" /> |
73 | 97 |
|
| 98 | + </com.google.android.material.button.MaterialButtonToggleGroup> |
| 99 | + |
| 100 | + <TextView |
| 101 | + android:id="@+id/time_input_mode_label" |
| 102 | + android:layout_width="0dp" |
| 103 | + android:layout_height="wrap_content" |
| 104 | + android:layout_marginStart="16dp" |
| 105 | + android:layout_marginLeft="16dp" |
| 106 | + android:layout_marginTop="16dp" |
| 107 | + android:layout_marginEnd="16dp" |
| 108 | + android:layout_marginRight="16dp" |
| 109 | + android:text="@string/time_input_mode_label" |
| 110 | + android:textAlignment="center" |
| 111 | + android:textAppearance="?attr/textAppearanceBodyLarge" |
| 112 | + app:layout_constraintEnd_toEndOf="parent" |
| 113 | + app:layout_constraintStart_toStartOf="parent" |
| 114 | + app:layout_constraintTop_toBottomOf="@+id/time_format_toggle" /> |
| 115 | + |
| 116 | + <TextView |
| 117 | + android:id="@+id/time_input_mode_note" |
| 118 | + android:layout_width="0dp" |
| 119 | + android:layout_height="wrap_content" |
| 120 | + android:layout_marginStart="16dp" |
| 121 | + android:layout_marginLeft="16dp" |
| 122 | + android:layout_marginEnd="16dp" |
| 123 | + android:layout_marginRight="16dp" |
| 124 | + android:text="@string/time_input_mode_note" |
| 125 | + android:textAlignment="center" |
| 126 | + android:textAppearance="?attr/textAppearanceBodySmall" |
| 127 | + app:layout_constraintEnd_toEndOf="parent" |
| 128 | + app:layout_constraintStart_toStartOf="parent" |
| 129 | + app:layout_constraintTop_toBottomOf="@+id/time_input_mode_label" /> |
| 130 | + |
| 131 | + <com.google.android.material.button.MaterialButtonToggleGroup |
| 132 | + android:id="@+id/time_input_mode_toggle" |
| 133 | + android:layout_width="wrap_content" |
| 134 | + android:layout_height="wrap_content" |
| 135 | + android:layout_marginTop="8dp" |
| 136 | + android:orientation="horizontal" |
| 137 | + app:layout_constraintEnd_toEndOf="parent" |
| 138 | + app:layout_constraintStart_toStartOf="parent" |
| 139 | + app:layout_constraintTop_toBottomOf="@+id/time_input_mode_note" |
| 140 | + app:selectionRequired="true" |
| 141 | + app:singleSelection="true"> |
| 142 | + |
74 | 143 | <Button |
75 | | - android:id="@+id/time_format_system" |
| 144 | + android:id="@+id/time_input_mode_default" |
76 | 145 | style="?attr/materialButtonOutlinedStyle" |
77 | 146 | android:layout_width="wrap_content" |
78 | 147 | android:layout_height="wrap_content" |
79 | | - android:text="@string/time_format_system" /> |
| 148 | + android:text="@string/time_input_mode_default" /> |
| 149 | + |
| 150 | + <Button |
| 151 | + android:id="@+id/time_input_mode_clock" |
| 152 | + style="?attr/materialButtonOutlinedStyle" |
| 153 | + android:layout_width="wrap_content" |
| 154 | + android:layout_height="wrap_content" |
| 155 | + android:text="@string/time_input_mode_clock" /> |
| 156 | + |
| 157 | + <Button |
| 158 | + android:id="@+id/time_input_mode_keyboard" |
| 159 | + style="?attr/materialButtonOutlinedStyle" |
| 160 | + android:layout_width="wrap_content" |
| 161 | + android:layout_height="wrap_content" |
| 162 | + android:text="@string/time_input_mode_keyboard" /> |
80 | 163 |
|
81 | 164 | </com.google.android.material.button.MaterialButtonToggleGroup> |
82 | 165 |
|
|
88 | 171 | android:text="@string/use_framework_dialog" |
89 | 172 | app:layout_constraintEnd_toEndOf="parent" |
90 | 173 | app:layout_constraintStart_toStartOf="parent" |
91 | | - app:layout_constraintTop_toBottomOf="@+id/time_format_toggle" /> |
| 174 | + app:layout_constraintTop_toBottomOf="@+id/time_input_mode_toggle" /> |
92 | 175 |
|
93 | 176 | </androidx.constraintlayout.widget.ConstraintLayout> |
94 | 177 |
|
|
0 commit comments