Cherish:QS header image [2/4]

This commit is contained in:
maxwen
2019-02-03 15:23:51 +05:30
committed by Hưng Phan
parent d30c5ef102
commit 8a7efcfe77
7 changed files with 341 additions and 1 deletions

View File

@@ -68,6 +68,14 @@
android:title="@string/enable_oneui"
android:summary="@string/enable_oneui_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
android:key="status_bar_custom_header"
android:icon="@drawable/ic_header"
android:fragment="com.cherish.settings.fragments.QsHeader"
android:title="@string/status_bar_custom_header_title"
android:summary="@string/status_bar_custom_header_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="footer_text_show"

58
res/xml/qs_header.xml Normal file
View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 ion-OS
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
android:title="@string/status_bar_custom_header_title"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<ListPreference
android:key="custom_header_provider"
android:title="@string/custom_header_provider_title"
android:persistent="false"
android:entries="@array/custom_header_provider_entries"
android:entryValues="@array/custom_header_provider_values" />
<ListPreference
android:key="daylight_header_pack"
android:title="@string/daylight_header_pack_title"
android:persistent="false" />
<Preference
android:key="custom_header_browse"
android:title="@string/custom_header_pick_title"
android:summary="@string/custom_header_pick_summary"
android:persistent="false" >
<intent android:action="android.intent.action.MAIN"
android:targetPackage="org.omnirom.omnistyle"
android:targetClass="org.omnirom.omnistyle.PickHeaderActivity" />
</Preference>
<Preference
android:key="file_header_select"
android:title="@string/file_header_select_title"
android:summary="@string/file_header_select_summary"
android:persistent="false" >
</Preference>
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="status_bar_custom_header_shadow"
android:title="@string/status_bar_custom_header_shadow_title"
android:max="100"
settings:min="0"
android:defaultValue="0"
settings:units="%" />
</PreferenceScreen>