Files
packages_apps_Evolver/res/xml/network_traffic_settings.xml
Pranav Vashi 405df016e5 Evolver: Network traffic mode for status bar [3/3]
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Id540c34fc53851203495680dacf93b08098b4ce0
Signed-off-by: AnierinB <anierin@evolution-x.org>
2025-06-11 02:36:27 +09:00

77 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017-2024 crDroid Android 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/status_bar_network_traffic_settings_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<lineageos.preference.SystemSettingMainSwitchPreference
android:key="network_traffic_enabled"
android:title="@string/enable" />
<org.evolution.settings.preferences.SystemSettingListPreference
android:key="network_traffic_mode"
android:title="@string/network_traffic_mode_title"
android:entries="@array/network_traffic_mode_entries"
android:entryValues="@array/network_traffic_mode_values"
android:summary="%s"
android:dependency="network_traffic_enabled"
android:defaultValue="0" />
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="network_traffic_autohide"
android:title="@string/network_traffic_autohide"
android:summary="@string/network_traffic_autohide_summary"
android:dependency="network_traffic_enabled"
android:defaultValue="true" />
<org.evolution.settings.preferences.SystemSettingSeekBarPreference
android:key="network_traffic_autohide_threshold"
android:title="@string/network_traffic_autohide_threshold"
android:defaultValue="0"
android:max="10000"
settings:min="0"
settings:units="@string/network_traffic_autohide_kilobytes"
settings:interval="10"
android:dependency="network_traffic_autohide" />
<org.evolution.settings.preferences.SystemSettingSeekBarPreference
android:key="network_traffic_refresh_interval"
android:title="@string/network_traffic_refresh_interval_title"
android:summary="@string/network_traffic_refresh_interval_summary"
android:dependency="network_traffic_enabled"
android:defaultValue="2"
android:max="10"
settings:min="1"
settings:units="@string/unit_seconds" />
<org.evolution.settings.preferences.SystemSettingListPreference
android:key="network_traffic_units"
android:title="@string/network_traffic_units_title"
android:entries="@array/network_traffic_units_entries"
android:entryValues="@array/network_traffic_units_values"
android:summary="%s"
android:dependency="network_traffic_enabled"
android:defaultValue="1" />
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="network_traffic_hidearrow"
android:title="@string/network_traffic_hidearrow"
android:summary="@string/network_traffic_hidearrow_summary"
android:dependency="network_traffic_enabled"
android:defaultValue="false" />
</PreferenceScreen>