|
12 | 12 | android:layout_width="match_parent" |
13 | 13 | android:layout_height="match_parent"> |
14 | 14 |
|
15 | | - <LinearLayout |
16 | | - android:layout_gravity="center" |
| 15 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 16 | + android:id="@+id/twoWaySyncToggle" |
| 17 | + android:text="@string/prefs_two_way_sync_switch_title" |
| 18 | + android:textSize="@dimen/txt_size_16sp" |
| 19 | + android:minHeight="48dp" |
| 20 | + android:layout_marginHorizontal="@dimen/standard_half_padding" |
17 | 21 | android:layout_marginTop="@dimen/alternate_margin" |
18 | 22 | android:layout_marginBottom="@dimen/alternate_margin" |
19 | | - android:layout_marginHorizontal="@dimen/standard_half_padding" |
20 | | - android:orientation="horizontal" |
21 | 23 | android:layout_width="match_parent" |
22 | | - android:layout_height="wrap_content"> |
23 | | - |
24 | | - <com.google.android.material.textview.MaterialTextView |
25 | | - android:text="@string/prefs_two_way_sync_switch_title" |
26 | | - android:textSize="@dimen/txt_size_16sp" |
27 | | - android:layout_weight="9" |
28 | | - android:layout_width="0dp" |
29 | | - android:layout_height="wrap_content"/> |
30 | | - |
31 | | - <com.google.android.material.materialswitch.MaterialSwitch |
32 | | - android:id="@+id/twoWaySyncToggle" |
33 | | - android:scaleX="0.7" |
34 | | - android:scaleY="0.7" |
35 | | - android:layout_width="wrap_content" |
36 | | - android:layout_height="wrap_content" /> |
37 | | - |
38 | | - </LinearLayout> |
| 24 | + android:layout_height="wrap_content" /> |
39 | 25 |
|
40 | 26 | <com.google.android.material.textfield.TextInputLayout |
41 | 27 | android:id="@+id/two_way_sync_interval_layout" |
|
0 commit comments