Cherish: Add GamingMode support [3/3]
Change-Id: I27960bbbf982a4cd855524baa743ed6647a2f0be Reviewed-on: https://review.exthmui.cn/c/android_packages_apps_exTHmSettings/+/209 Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
75
res/xml/cherish_settings_gaming_danmaku.xml
Normal file
75
res/xml/cherish_settings_gaming_danmaku.xml
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- Copyright (C) 2020 The exTHmUI Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/gaming_mode_notification_danmaku_title" >
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="gaming_mode_show_danmaku"
|
||||
android:title="@string/gaming_mode_show_danmaku_title"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="gaming_mode_danmaku_dynamic_notification_filter"
|
||||
android:title="@string/gaming_mode_danmaku_dynamic_notification_filter_title"
|
||||
android:summary="@string/gaming_mode_danmaku_dynamic_notification_filter_summary"
|
||||
android:defaultValue="true"
|
||||
android:dependency="gaming_mode_show_danmaku" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
||||
android:key="gaming_mode_danmaku_size_horizontal"
|
||||
android:title="@string/gaming_mode_danmaku_size_horizontal_title"
|
||||
android:defaultValue="36"
|
||||
android:max="64"
|
||||
settings:min="12"
|
||||
settings:units="px"
|
||||
android:dependency="gaming_mode_show_danmaku" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
||||
android:key="gaming_mode_danmaku_size_vertical"
|
||||
android:title="@string/gaming_mode_danmaku_size_vertical_title"
|
||||
android:defaultValue="36"
|
||||
android:max="64"
|
||||
settings:min="12"
|
||||
settings:units="px"
|
||||
android:dependency="gaming_mode_show_danmaku" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
||||
android:key="gaming_mode_danmaku_speed_horizontal"
|
||||
android:title="@string/gaming_mode_danmaku_speed_horizontal_title"
|
||||
android:defaultValue="300"
|
||||
android:max="1000"
|
||||
settings:min="100"
|
||||
settings:units="px/s"
|
||||
android:dependency="gaming_mode_show_danmaku" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
||||
android:key="gaming_mode_danmaku_speed_vertical"
|
||||
android:title="@string/gaming_mode_danmaku_speed_vertical_title"
|
||||
android:defaultValue="300"
|
||||
android:max="1000"
|
||||
settings:min="100"
|
||||
settings:units="px/s"
|
||||
android:dependency="gaming_mode_show_danmaku" />
|
||||
|
||||
<com.cherish.settings.preferences.PackageListPreference
|
||||
android:title="@string/gaming_mode_danmaku_blacklist"
|
||||
android:key="gaming_mode_danmaku_app_blacklist"
|
||||
android:dependency="gaming_mode_show_danmaku" />
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user