• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
19
20    <PreferenceCategory
21            android:title="@string/sound_settings">
22
23        <CheckBoxPreference
24                android:key="silent"
25                android:title="@string/silent_mode_title"
26                android:summary="@string/silent_mode_summary"
27                android:persistent="false"
28                android:disableDependentsState="true" />
29
30        <com.android.settings.RingerVolumePreference
31                android:key="ring_volume"
32                android:title="@string/ring_volume_title"
33                android:summary="@string/ring_volume_summary"
34                android:dialogTitle="@string/ring_volume_title"
35                android:persistent="false"
36                android:dependency="silent"
37                android:streamType="ring" />
38
39        <VolumePreference
40                android:key="media_volume"
41                android:title="@string/media_volume_title"
42                android:summary="@string/media_volume_summary"
43                android:dialogTitle="@string/media_volume_title"
44                android:persistent="false"
45                android:streamType="music" />
46
47        <com.android.settings.DefaultRingtonePreference
48                android:key="ringtone"
49                android:title="@string/ringtone_title"
50                android:summary="@string/ringtone_summary"
51                android:dialogTitle="@string/ringtone_title"
52                android:persistent="false"
53                android:dependency="silent"
54                android:ringtoneType="ringtone" />
55
56        <CheckBoxPreference
57                android:key="vibrate"
58                android:title="@string/vibrate_title"
59                android:summary="@string/vibrate_summary"
60                android:persistent="false" />
61
62        <com.android.settings.DefaultRingtonePreference
63                android:key="notification_sound"
64                android:title="@string/notification_sound_title"
65                android:summary="@string/notification_sound_summary"
66                android:dialogTitle="@string/notification_sound_dialog_title"
67                android:dependency="silent"
68                android:persistent="false"
69                android:ringtoneType="notification" />
70
71        <CheckBoxPreference
72                android:key="dtmf_tone"
73                android:title="@string/dtmf_tone_enable_title"
74                android:summaryOn="@string/dtmf_tone_enable_summary_on"
75                android:summaryOff="@string/dtmf_tone_enable_summary_off"
76                android:dependency="silent"
77                android:defaultValue="true" />
78
79        <CheckBoxPreference
80                android:key="sound_effects"
81                android:title="@string/sound_effects_enable_title"
82                android:summaryOn="@string/sound_effects_enable_summary_on"
83                android:summaryOff="@string/sound_effects_enable_summary_off"
84                android:dependency="silent"
85                android:defaultValue="true" />
86
87        <CheckBoxPreference
88                android:key="haptic_feedback"
89                android:title="@string/haptic_feedback_enable_title"
90                android:summaryOn="@string/haptic_feedback_enable_summary_on"
91                android:summaryOff="@string/haptic_feedback_enable_summary_off"
92                android:dependency="silent"
93                android:defaultValue="true" />
94
95        <CheckBoxPreference
96                android:key="play_media_notification_sounds"
97                android:title="@string/play_media_notification_sounds_enable_title"
98                android:summaryOn="@string/play_media_notification_sounds_enable_summary_on"
99                android:summaryOff="@string/play_media_notification_sounds_enable_summary_off"
100                android:dependency="silent"
101                android:defaultValue="true" />
102
103    </PreferenceCategory>
104
105    <ListPreference
106            android:key="emergency_tone"
107            android:title="@string/emergency_tone_title"
108            android:summary="@string/emergency_tone_summary"
109            android:entries="@array/emergency_tone_entries"
110            android:entryValues="@array/emergency_tone_values" />
111
112    <PreferenceCategory
113            android:title="@string/display_settings">
114
115        <CheckBoxPreference
116            android:key="accelerometer"
117            android:title="@string/accelerometer_title"
118            android:summaryOn="@string/accelerometer_summary_on"
119            android:summaryOff="@string/accelerometer_summary_off"/>
120
121	    <ListPreference
122	        android:key="animations"
123	        android:title="@string/animations_title"
124            android:persistent="false"
125            android:entries="@array/animations_entries"
126            android:entryValues="@array/animations_values" />
127
128        <com.android.settings.BrightnessPreference
129                android:key="brightness"
130                android:title="@string/brightness"
131                android:summary="@string/brightness_summary"
132                android:dialogIcon="@drawable/ic_popup_brightness"
133                android:dialogTitle="@string/brightness" />
134
135        <ListPreference
136                android:key="screen_timeout"
137                android:title="@string/screen_timeout"
138                android:summary="@string/screen_timeout_summary"
139                android:persistent="false"
140                android:entries="@array/screen_timeout_entries"
141                android:entryValues="@array/screen_timeout_values" />
142    </PreferenceCategory>
143
144</PreferenceScreen>
145