make switch smaller

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-10-28 12:45:46 +01:00 committed by Alper Öztürk
parent c98a720950
commit c84f926329
2 changed files with 26 additions and 10 deletions

View file

@ -5,22 +5,38 @@
~ SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me> ~ SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me>
~ SPDX-License-Identifier: AGPL-3.0-or-later ~ SPDX-License-Identifier: AGPL-3.0-or-later
--> -->
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout
android:layout_gravity="center"
android:layout_marginTop="@dimen/alternate_margin"
android:layout_marginBottom="@dimen/alternate_margin"
android:layout_marginHorizontal="@dimen/standard_half_padding"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textview.MaterialTextView
android:text="@string/prefs_two_way_sync_switch_title"
android:textSize="@dimen/txt_size_16sp"
android:layout_weight="9"
android:layout_width="0dp"
android:layout_height="wrap_content"/>
<com.google.android.material.materialswitch.MaterialSwitch <com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/twoWaySyncToggle" android:id="@+id/twoWaySyncToggle"
android:layout_marginStart="@dimen/standard_half_padding" android:scaleX="0.7"
android:text="@string/prefs_two_way_sync" android:scaleY="0.7"
android:textSize="@dimen/splash_text_size"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_marginBottom="@dimen/alternate_margin"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout>
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:id="@+id/two_way_sync_interval_layout" android:id="@+id/two_way_sync_interval_layout"
android:layout_marginHorizontal="@dimen/standard_half_padding" android:layout_marginHorizontal="@dimen/standard_half_padding"

View file

@ -115,7 +115,7 @@
<string name="prefs_value_theme_dark">Dark</string> <string name="prefs_value_theme_dark">Dark</string>
<string name="prefs_value_theme_system">Follow system</string> <string name="prefs_value_theme_system">Follow system</string>
<string name="prefs_theme_title">Theme</string> <string name="prefs_theme_title">Theme</string>
<string name="prefs_two_way_sync">Two Way Sync</string> <string name="prefs_two_way_sync_switch_title">Enable Sync</string>
<string name="prefs_two_way_sync_interval">Interval</string> <string name="prefs_two_way_sync_interval">Interval</string>
<string name="two_way_sync_interval_15_min">15 minutes</string> <string name="two_way_sync_interval_15_min">15 minutes</string>