Cherish:Live Volume Steps [3/3]
Change-Id: I1e4ced6a7b7c963419fe1656e25b76f596a61959 Signed-off-by: Jason Edson <jaysonedson@gmail.com> Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -647,4 +647,15 @@
|
||||
<item>8</item>
|
||||
<item>9</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Volume step options. -->
|
||||
<string-array name="volume_steps_entries" translatable="false">
|
||||
<item>60</item>
|
||||
<item>50</item>
|
||||
<item>45</item>
|
||||
<item>30</item>
|
||||
<item>15</item>
|
||||
<item>7</item>
|
||||
<item>5</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -664,4 +664,16 @@
|
||||
<string name="power_menu_animation_translucent_top">Translucent (top)</string>
|
||||
<string name="power_menu_animation_translucent_bottom">Translucent (bottom)</string>
|
||||
|
||||
<!-- Volume Steps Fragment -->
|
||||
<string name="volume_steps_fragment_title">Volume steps</string>
|
||||
<string name="volume_steps_summary">Customize volume steps</string>
|
||||
<string name="volume_steps_alarm_title">Volume steps: Alarm</string>
|
||||
<string name="volume_steps_dtmf_title">Volume steps: DTMF</string>
|
||||
<string name="volume_steps_music_title">Volume steps: Media</string>
|
||||
<string name="volume_steps_notification_title">Volume steps: Notification</string>
|
||||
<string name="volume_steps_ring_title">Volume steps: Ringer</string>
|
||||
<string name="volume_steps_system_title">Volume steps: System</string>
|
||||
<string name="volume_steps_voice_call_title">Volume steps: Voice Call</string>
|
||||
<string name="volume_steps_reset">Reset</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -32,4 +32,11 @@
|
||||
android:entryValues="@array/screenshot_type_values"
|
||||
android:title="@string/screenshot_type_title"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<Preference
|
||||
android:key="vol_steps"
|
||||
android:title="@string/volume_steps_fragment_title"
|
||||
android:summary="@string/volume_steps_summary"
|
||||
android:icon="@drawable/ic_volume"
|
||||
android:fragment="com.cherish.settings.fragments.VolumeStepsFragment" />
|
||||
</PreferenceScreen>
|
||||
|
||||
62
res/xml/volume_steps_fragment.xml
Normal file
62
res/xml/volume_steps_fragment.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2015 The Pure Nexus 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/volume_steps_fragment_title">
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_alarm"
|
||||
android:title="@string/volume_steps_alarm_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_dtmf"
|
||||
android:title="@string/volume_steps_dtmf_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_music"
|
||||
android:title="@string/volume_steps_music_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_notification"
|
||||
android:title="@string/volume_steps_notification_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_ring"
|
||||
android:title="@string/volume_steps_ring_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_system"
|
||||
android:title="@string/volume_steps_system_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
<ListPreference
|
||||
android:key="volume_steps_voice_call"
|
||||
android:title="@string/volume_steps_voice_call_title"
|
||||
android:entries="@array/volume_steps_entries"
|
||||
android:entryValues="@array/volume_steps_entries" />
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user