This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
android_packages_apps_Cherish/res/xml/cherish_settings_statusbar.xml
Parth Bhatia 4dc160f91d Cherish: Add battery styles and customizations for Android 10 [2/2]
Allows the user to tune:
- battery styles
- battery percentage

rcstar6696:
- Adapted to our battery stylesAdd battery styles and customizations for Android 10 [2/2]

Change-Id: I6075e1a70a7a3c111daa24d913953111776bceb0
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2021-12-26 11:33:38 +07:00

103 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS 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/statusbar_gesture_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="double_tap_sleep_gesture"
android:title="@string/double_tap_to_sleep_statusbar_title"
android:summary="@string/double_tap_to_sleep_statusbar_summary"
android:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="statusbar_icons"
android:title="@string/sb_icons">
<Preference
android:key="carrier_label"
android:fragment="com.cherish.settings.fragments.CarrierLabel"
android:title="@string/carrier_label_settings_title" />
<Preference
android:key="status_bar_clock"
android:fragment="com.cherish.settings.fragments.ClockDateSettings"
android:title="@string/status_bar_clock_title" />
<Preference
android:key="traffic"
android:fragment="com.cherish.settings.fragments.Traffic"
android:title="@string/traffic_title" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="data_disabled_icon"
android:title="@string/data_disabled_icon_title"
android:summary="@string/data_disabled_icon_summary"
android:defaultValue="true"/>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="show_fourg_icon"
android:title="@string/show_fourg_icon_title"
android:summary="@string/show_fourg_icon_summary"
android:defaultValue="false"/>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="show_volte_icon"
android:title="@string/volte_icon_title"
android:summary="@string/volte_icon_summary"
android:defaultValue="true"/>
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="volte_icon_style"
android:icon="@drawable/ic_volte"
android:title="@string/volte_icon_style_title"
android:entries="@array/volte_icon_type_entries"
android:entryValues="@array/volte_icon_type_values"
android:summary="%s"
android:defaultValue="0"/>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="roaming_indicator_icon"
android:title="@string/roaming_indicator_icon_title"
android:summary="@string/roaming_indicator_icon_summary"
android:defaultValue="true"/>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="use_old_mobiletype"
android:title="@string/use_old_mobiletype_title"
android:summary="@string/use_old_mobiletype_summary"
android:defaultValue="false" />
<Preference
android:key="systemui_tuner_statusbar"
android:title="@string/statusbar_items_category" >
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.android.systemui"
android:targetClass="com.android.systemui.tuner.StatusbarItemsActivity" />
</Preference>
<Preference
android:key="battery_bar_category"
android:fragment="com.cherish.settings.fragments.BatterySettings"
android:title="@string/battery_settings_title" />
</PreferenceCategory>
</PreferenceScreen>