mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 02:10:54 +02:00
implemented #56: configurable edge width for edge gestures
This commit is contained in:
parent
3423534085
commit
6b31f8dc3b
7 changed files with 125 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
|
@ -12,9 +11,9 @@
|
|||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/settings_appbar"
|
||||
android:background="@null"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null"
|
||||
app:elevation="0dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
@ -55,6 +54,7 @@
|
|||
android:id="@+id/settings_system"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="true"
|
||||
|
@ -64,8 +64,7 @@
|
|||
custom:layout_constraintBottom_toBottomOf="parent"
|
||||
custom:layout_constraintStart_toStartOf="parent"
|
||||
custom:layout_constraintTop_toTopOf="parent"
|
||||
custom:type="solid"
|
||||
android:layout_marginStart="8dp" />
|
||||
custom:type="solid" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
|
@ -81,4 +80,15 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
|
||||
<de.jrpie.android.launcher.ui.settings.GestureAreaIndicatorOverlayView
|
||||
android:id="@+id/gestureAreaIndicatorOverlayView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/transparent"
|
||||
android:clickable="false"
|
||||
android:visibility="invisible"
|
||||
android:padding="0dp" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
|
||||
<string name="settings_enabled_gestures_double_swipe_key" translatable="false">enabled_gestures.double_actions</string>
|
||||
<string name="settings_enabled_gestures_edge_swipe_key" translatable="false">enabled_gestures.edge_actions</string>
|
||||
<string name="settings_enabled_gestures_edge_swipe_edge_width_key" translatable="false">enabled_gestures.edge_actions.edge_width</string>
|
||||
<string name="settings_functionality_search_auto_launch_key" translatable="false">functionality.search_auto_launch</string>
|
||||
<string name="settings_functionality_search_auto_open_keyboard_key" translatable="false">functionality.search_auto_keyboard</string>
|
||||
|
||||
|
|
|
@ -109,6 +109,7 @@
|
|||
|
||||
<string name="settings_enabled_gestures_double_swipe">Double swipe actions</string>
|
||||
<string name="settings_enabled_gestures_edge_swipe">Edge swipe actions</string>
|
||||
<string name="settings_enabled_gestures_edge_swipe_edge_width">Edge width</string>
|
||||
<string name="settings_functionality_auto_launch">Launch search results</string>
|
||||
<string name="settings_functionality_auto_keyboard">Start keyboard for search</string>
|
||||
|
||||
|
|
|
@ -95,6 +95,16 @@
|
|||
android:key="@string/settings_enabled_gestures_edge_swipe_key"
|
||||
android:defaultValue="true"
|
||||
android:title="@string/settings_enabled_gestures_edge_swipe"/>
|
||||
<PreferenceCategory
|
||||
android:dependency="@string/settings_enabled_gestures_edge_swipe_key"
|
||||
app:allowDividerAbove="false" >
|
||||
<SeekBarPreference
|
||||
android:key="@string/settings_enabled_gestures_edge_swipe_edge_width_key"
|
||||
android:defaultValue="15"
|
||||
android:max="33"
|
||||
android:title="@string/settings_enabled_gestures_edge_swipe_edge_width"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
|
||||
</PreferenceCategory>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue