|
5 | 5 | ~ SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me> |
6 | 6 | ~ SPDX-License-Identifier: AGPL-3.0-or-later |
7 | 7 | --> |
8 | | -<LinearLayout |
9 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
| 8 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
10 | 9 | xmlns:tools="http://schemas.android.com/tools" |
| 10 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
11 | 11 | android:orientation="vertical" |
12 | 12 | android:layout_width="match_parent" |
13 | 13 | android:layout_height="match_parent"> |
14 | 14 |
|
15 | | - <com.google.android.material.materialswitch.MaterialSwitch |
16 | | - android:id="@+id/twoWaySyncToggle" |
17 | | - android:layout_marginStart="@dimen/standard_half_padding" |
18 | | - android:text="@string/prefs_two_way_sync" |
19 | | - android:textSize="@dimen/splash_text_size" |
20 | | - android:layout_width="wrap_content" |
| 15 | + <LinearLayout |
| 16 | + android:layout_gravity="center" |
| 17 | + android:layout_marginTop="@dimen/alternate_margin" |
21 | 18 | android:layout_marginBottom="@dimen/alternate_margin" |
22 | | - android:layout_height="wrap_content" /> |
| 19 | + android:layout_marginHorizontal="@dimen/standard_half_padding" |
| 20 | + android:orientation="horizontal" |
| 21 | + 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> |
23 | 39 |
|
24 | 40 | <com.google.android.material.textfield.TextInputLayout |
25 | 41 | android:id="@+id/two_way_sync_interval_layout" |
|
0 commit comments