Cherish:Add some button settings
Hardware key: Customization support[2/2] Volume Rocker Wake [2/2] Volume key cursor control (2/2) Co-authored-by: jhenrique09 <jhsv09@gmail.com> Co-authored-by: Max <xyyx@mail.ru> Co-authored-by: bigrushdog <randall.rushing@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -18,10 +18,28 @@
|
||||
android:title="@string/button_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<PreferenceCategory
|
||||
<!-- SwitchPreference
|
||||
android:key="navbar_visibility"
|
||||
android:title="@string/navigation_bar_title"
|
||||
android:summary="@string/navigation_bar_summary" />-->
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="navigation_keys"
|
||||
android:title="@string/navigation_bar_category">
|
||||
|
||||
<Preference
|
||||
android:key="gesture_system_navigation_input_summary"
|
||||
android:title="@string/system_navigation_title"
|
||||
android:fragment="com.android.settings.gestures.SystemNavigationGestureSettings"
|
||||
settings:controller="com.android.settings.gestures.SystemNavigationPreferenceController"
|
||||
settings:keywords="@string/keywords_system_navigation" />
|
||||
|
||||
<!-- com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="navigation_bar_menu_arrow_keys"
|
||||
android:title="@string/navigation_bar_arrow_keys_title"
|
||||
android:summary="@string/navigation_bar_arrow_keys_summary"
|
||||
android:defaultValue="false" />-->
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="navigation_bar_compact_layout"
|
||||
android:title="@string/navigation_bar_compact_layout_title"
|
||||
@@ -36,5 +54,210 @@
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="volume_category"
|
||||
android:title="@string/volume_category">
|
||||
|
||||
<com.cherish.settings.preferences.SecureSettingSwitchPreference
|
||||
android:key="volume_panel_on_left"
|
||||
android:title="@string/volume_panel_on_left_title"
|
||||
android:summary="@string/volume_panel_on_left_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<Preference
|
||||
android:key="vol_steps"
|
||||
android:title="@string/volume_steps_fragment_title"
|
||||
android:summary="@string/volume_steps_summary"
|
||||
android:fragment="com.cherish.settings.fragments.VolumeRockerSettings" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="volume_rocker_wake"
|
||||
android:summary="@string/volume_rocker_wake_summary"
|
||||
android:title="@string/volume_rocker_wake_title"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="volume_key_cursor_control"
|
||||
android:summary="%s"
|
||||
android:title="@string/volume_key_cursor_control_title"
|
||||
android:dialogTitle="@string/volume_key_cursor_control_title"
|
||||
android:entries="@array/volume_key_cursor_control_entries"
|
||||
android:entryValues="@array/volume_key_cursor_control_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="hardware_keys"
|
||||
android:title="@string/hardware_keys_category">
|
||||
|
||||
<SwitchPreference
|
||||
android:key="hardware_keys_disable"
|
||||
android:title="@string/hardware_keys_disable_title" />
|
||||
|
||||
<com.cherish.settings.preferences.SecureSettingSwitchPreference
|
||||
android:key="swap_capacitive_keys"
|
||||
android:title="@string/swap_capacitive_keys_title"
|
||||
android:summary="@string/swap_capacitive_keys_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<!-- PreferenceCategory
|
||||
android:key="button_backlight_options_category"
|
||||
android:title="@string/button_backlight_options_category">
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="button_backlight_enable"
|
||||
android:title="@string/button_backlight_enable_title"
|
||||
android:defaultValue="true" />
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="custom_button_use_screen_brightness"
|
||||
android:title="@string/button_link_brightness"
|
||||
android:summary="@string/button_link_brightness_summary"
|
||||
android:defaultValue="false"
|
||||
android:dependency="button_backlight_enable"
|
||||
android:disableDependentsState="true" />
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="button_manual_brightness_new"
|
||||
android:title="@string/button_manual_brightness"
|
||||
android:max="255"
|
||||
settings:min="1"
|
||||
android:persistent="false"
|
||||
android:dependency="custom_button_use_screen_brightness" />
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="button_timeout"
|
||||
android:title="@string/button_timeout_title"
|
||||
android:max="30"
|
||||
settings:min="0"
|
||||
android:persistent="false"
|
||||
android:dependency="button_backlight_enable" />
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="button_backlight_on_touch_only"
|
||||
android:title="@string/button_backlight_on_touch_only_title"
|
||||
android:summary="@string/button_backlight_on_touch_only_summary"
|
||||
android:defaultValue="false"
|
||||
android:dependency="button_backlight_enable" />
|
||||
</PreferenceCategory>-->
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="back_key"
|
||||
android:title="@string/hardware_keys_back_key_title">
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_back_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_back_long_press"
|
||||
android:summary="@string/hardware_keys_long_press_summary"
|
||||
android:title="@string/hardware_keys_long_press_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_back_double_tap"
|
||||
android:summary="@string/hardware_keys_double_tap_summary"
|
||||
android:title="@string/hardware_keys_double_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="home_key"
|
||||
android:title="@string/hardware_keys_home_key_title">
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_home_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_home_long_press"
|
||||
android:summary="@string/hardware_keys_long_press_summary"
|
||||
android:title="@string/hardware_keys_long_press_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_home_double_tap"
|
||||
android:summary="@string/hardware_keys_double_tap_summary"
|
||||
android:title="@string/hardware_keys_double_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="app_switch_key"
|
||||
android:title="@string/hardware_keys_appswitch_key_title">
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_overview_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_overview_long_press"
|
||||
android:summary="@string/hardware_keys_long_press_summary"
|
||||
android:title="@string/hardware_keys_long_press_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_overview_double_tap"
|
||||
android:summary="@string/hardware_keys_double_tap_summary"
|
||||
android:title="@string/hardware_keys_double_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="menu_key"
|
||||
android:title="@string/hardware_keys_menu_key_title">
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_menu_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_menu_long_press"
|
||||
android:summary="@string/hardware_keys_long_press_summary"
|
||||
android:title="@string/hardware_keys_long_press_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_menu_double_tap"
|
||||
android:summary="@string/hardware_keys_double_tap_summary"
|
||||
android:title="@string/hardware_keys_double_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="assist_key"
|
||||
android:title="@string/hardware_keys_assist_key_title">
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_assist_single_tap"
|
||||
android:summary="@string/hardware_keys_single_tap_summary"
|
||||
android:title="@string/hardware_keys_single_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_assist_long_press"
|
||||
android:summary="@string/hardware_keys_long_press_summary"
|
||||
android:title="@string/hardware_keys_long_press_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
<com.cherish.settings.preferences.ActionPreference
|
||||
android:key="hwkeys_button_assist_double_tap"
|
||||
android:summary="@string/hardware_keys_double_tap_summary"
|
||||
android:title="@string/hardware_keys_double_tap_title">
|
||||
</com.cherish.settings.preferences.ActionPreference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user