Feat: Added custom gestures.
Added Gestures: - DoubleTap. - Swipe: Up, Down, Left, Right. Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
@@ -589,30 +589,32 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_lock_text"
|
||||
android:id="@+id/gestures_double_tap_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="left|center"
|
||||
android:text="@string/settings_double_tap_lock"
|
||||
android:text="@string/settings_double_tap"
|
||||
android:textSize="@dimen/text_large"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="RtlHardcoded"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/gestures_lock_switchCompat"
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_double_tap_control"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:thumb="@drawable/shape_switch_thumb"
|
||||
app:track="@drawable/selector_switch"
|
||||
android:scaleY="0.8"
|
||||
android:scaleX="0.7" />
|
||||
android:gravity="left|center"
|
||||
android:text="@string/settings_double_tap"
|
||||
android:textSize="@dimen/text_large"
|
||||
tools:ignore="RtlHardcoded"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
@@ -620,30 +622,32 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_notification_text"
|
||||
android:id="@+id/gestures_swipe_up_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="left|center"
|
||||
android:text="@string/settings_swipe_down_notification"
|
||||
android:text="@string/settings_swipe_up"
|
||||
android:textSize="@dimen/text_large"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="RtlHardcoded"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/gestures_notification_switchCompat"
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_swipe_up_control"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:thumb="@drawable/shape_switch_thumb"
|
||||
app:track="@drawable/selector_switch"
|
||||
android:scaleY="0.8"
|
||||
android:scaleX="0.7" />
|
||||
android:gravity="left|center"
|
||||
android:text="@string/settings_swipe_up"
|
||||
android:textSize="@dimen/text_large"
|
||||
tools:ignore="RtlHardcoded"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
@@ -651,30 +655,98 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_search_text"
|
||||
android:id="@+id/gestures_swipe_down_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="left|center"
|
||||
android:text="@string/settings_swipe_up_search"
|
||||
android:text="@string/settings_swipe_down"
|
||||
android:textSize="@dimen/text_large"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="RtlHardcoded"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/gestures_search_switchCompat"
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_swipe_down_control"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:thumb="@drawable/shape_switch_thumb"
|
||||
app:track="@drawable/selector_switch"
|
||||
android:scaleY="0.8"
|
||||
android:scaleX="0.7" />
|
||||
android:gravity="left|center"
|
||||
android:text="@string/settings_swipe_down"
|
||||
android:textSize="@dimen/text_large"
|
||||
tools:ignore="RtlHardcoded"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_swipe_left_text"
|
||||
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"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_swipe_left_control"
|
||||
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"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_swipe_right_text"
|
||||
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"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/gestures_swipe_right_control"
|
||||
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"
|
||||
style="@style/TextDefaultStyle" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
@@ -698,6 +770,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
@@ -732,7 +805,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="MissingConstraints">
|
||||
tools:ignore="MissingConstraints,TooManyViews">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -76,9 +76,12 @@
|
||||
<string name="settings_manager_hidden">Hidden Apps</string>
|
||||
|
||||
<string name="settings_select_wallpaper">Select Wallpaper</string>
|
||||
<string name="settings_double_tap_lock">Double tap to lock</string>
|
||||
<string name="settings_swipe_down_notification">Swipe down expand notification</string>
|
||||
<string name="settings_swipe_up_search">Swipe up open search view</string>
|
||||
<string name="settings_double_tap">Double Tap</string>
|
||||
<string name="settings_swipe_up">Swipe Up</string>
|
||||
<string name="settings_swipe_down">Swipe Down</string>
|
||||
<string name="settings_swipe_left">Swipe Left</string>
|
||||
<string name="settings_swipe_right">Swipe Right</string>
|
||||
|
||||
|
||||
<string name="settings_search_engine">Search Engine</string>
|
||||
|
||||
@@ -92,6 +95,17 @@
|
||||
<string name="settings_reload_app_backup">Preferences backed up.</string>
|
||||
<string name="settings_reload_app_restore">Preferences restored. Restarting.</string>
|
||||
|
||||
<string name="settings_actions_open_app">Open App</string>
|
||||
<string name="settings_actions_lock_screen">Lock Screen</string>
|
||||
<string name="settings_actions_show_notifications">Show Notifications</string>
|
||||
<string name="settings_actions_show_app_list">Show Apps List</string>
|
||||
<string name="settings_actions_show_favorite_list">Show Favorites List</string>
|
||||
<string name="settings_actions_open_quick_settings">Open Quick Settings</string>
|
||||
<string name="settings_actions_show_recents">Show Recents</string>
|
||||
<string name="settings_actions_open_power_dialog">Open Power Dialog</string>
|
||||
<string name="settings_actions_take_a_screenshot">Take a ScreenShot</string>
|
||||
<string name="settings_actions_disabled">Disabled</string>
|
||||
|
||||
<string name="authentication_title">Authentication</string>
|
||||
<string name="authentication_subtitle">Log in using your biometric credentials.</string>
|
||||
<string name="authentication_cancel">Authentication Cancel</string>
|
||||
|
||||
Reference in New Issue
Block a user