spezi77: - Adapted to our battery styles - Note to myself: In Android10 battery percentage has become a global setting
65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 Nitrogen 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"
|
|
android:title="@string/statusbar_title"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/status_bar_icons_title">
|
|
<PreferenceScreen
|
|
android:key="status_bar_icons"
|
|
android:title="@string/status_bar_system_icons_title">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
|
|
android:key="status_bar_clock"
|
|
android:icon="@drawable/ic_clock"
|
|
android:fragment="com.cherish.settings.fragments.ClockSettings"
|
|
android:title="@string/status_bar_clock_title"
|
|
android:summary="@string/status_bar_clock_summary"
|
|
android:defaultValue="true" />
|
|
|
|
<PreferenceCategory
|
|
|
|
android:key="battery_style_category"
|
|
android:title="@string/battery_style_category_title" >
|
|
|
|
<com.cherish.settings.preferences.SecureSettingListPreference
|
|
android:key="status_bar_battery_style"
|
|
android:title="@string/status_bar_battery_style_title"
|
|
android:summary="%s"
|
|
android:dialogTitle="@string/status_bar_battery_style_title"
|
|
android:entries="@array/status_bar_battery_style_entries"
|
|
android:entryValues="@array/status_bar_battery_style_values" />
|
|
|
|
<ListPreference
|
|
android:key="battery_percentage"
|
|
android:title="@string/battery_percent_title"
|
|
android:dialogTitle="@string/battery_percent_title"
|
|
android:entries="@array/battery_percent_entries"
|
|
android:entryValues="@array/battery_percent_values" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<Preference
|
|
android:title="@string/statusbar_items_title"
|
|
android:icon="@drawable/ic_shortcuts">
|
|
android:summary="@string/status_bar_system_icons_summary">
|
|
<intent android:action="com.android.settings.action.STATUS_BAR_TUNER" />
|
|
</PreferenceScreen>
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|