mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 14:45:47 +03:00
make switch smaller
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
c98a720950
commit
c84f926329
2 changed files with 26 additions and 10 deletions
|
@ -5,21 +5,37 @@
|
|||
~ SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me>
|
||||
~ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.materialswitch.MaterialSwitch
|
||||
android:id="@+id/twoWaySyncToggle"
|
||||
android:layout_marginStart="@dimen/standard_half_padding"
|
||||
android:text="@string/prefs_two_way_sync"
|
||||
android:textSize="@dimen/splash_text_size"
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="@dimen/alternate_margin"
|
||||
android:layout_marginBottom="@dimen/alternate_margin"
|
||||
android:layout_height="wrap_content" />
|
||||
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
|
||||
android:id="@+id/twoWaySyncToggle"
|
||||
android:scaleX="0.7"
|
||||
android:scaleY="0.7"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/two_way_sync_interval_layout"
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<string name="prefs_value_theme_dark">Dark</string>
|
||||
<string name="prefs_value_theme_system">Follow system</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="two_way_sync_interval_15_min">15 minutes</string>
|
||||
|
|
Loading…
Reference in a new issue