386 lines
19 KiB
XML
386 lines
19 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.settings.SettingsFeaturesFragment">
|
|
|
|
<com.github.droidworksstudio.launcher.view.GestureNestedScrollView
|
|
android:id="@+id/nestScrollView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:fadingEdgeLength="48dp"
|
|
android:fillViewport="true"
|
|
android:overScrollMode="never"
|
|
android:requiresFadingEdge="vertical"
|
|
android:scrollbars="none"
|
|
tools:ignore="TooManyViews">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="42dp"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/headerIcon"
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="10dp"
|
|
android:contentDescription="@string/features_settings_title"
|
|
android:src="@drawable/ic_feature" />
|
|
|
|
<TextView
|
|
android:id="@+id/headerTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="24dp"
|
|
android:text="@string/features_settings_title"
|
|
android:textSize="24sp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_title_home_behavior_preferences"
|
|
android:textColor="@color/icon_200"
|
|
android:textSize="@dimen/text_large" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/automaticKeyboard_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_display_automatic_keyboard"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/automaticKeyboard_switchCompat"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleX="0.7"
|
|
android:scaleY="0.8"
|
|
android:thumb="@drawable/shape_switch_thumb"
|
|
app:track="@drawable/selector_switch"
|
|
tools:ignore="TouchTargetSizeCheck,DuplicateSpeakableTextCheck" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/automaticOpenApp_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_display_auto_open_apps"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/automaticOpenApp_switchCompat"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleX="0.7"
|
|
android:scaleY="0.8"
|
|
android:thumb="@drawable/shape_switch_thumb"
|
|
app:track="@drawable/selector_switch"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/lockSettings_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_display_lock_settings"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/lockSettings_switchCompat"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleX="0.7"
|
|
android:scaleY="0.8"
|
|
android:thumb="@drawable/shape_switch_thumb"
|
|
app:track="@drawable/selector_switch"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_title_gestures"
|
|
android:textColor="@color/icon_200"
|
|
android:textSize="@dimen/text_large" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_double_tap_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_double_tap"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_double_tap_control"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_double_tap"
|
|
android:textSize="@dimen/text_large"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_up_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_up"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_up_control"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_up"
|
|
android:textSize="@dimen/text_large"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_down_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_down"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_down_control"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_down"
|
|
android:textSize="@dimen/text_large"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_left_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_left"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_left_control"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_left"
|
|
android:textSize="@dimen/text_large"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_right_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_right"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/gestures_swipe_right_control"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_swipe_right"
|
|
android:textSize="@dimen/text_large"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_title_miscellaneous"
|
|
android:textColor="@color/icon_200"
|
|
android:textSize="@dimen/text_large" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="10dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/miscellaneous_searchEngine_text"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left|center"
|
|
android:text="@string/settings_search_engine"
|
|
android:textSize="@dimen/text_large"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/miscellaneous_searchEngine_control"
|
|
style="@style/TextDefaultStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="left|center"
|
|
android:text="@string/search"
|
|
android:textSize="@dimen/text_large"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</com.github.droidworksstudio.launcher.view.GestureNestedScrollView>
|
|
</FrameLayout>
|