OSDN Git Service

9ff37a451f26dab617d5cc55ea6fade381bba77b
[android-x86/packages-apps-IM.git] / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4  * Copyright (C) 2008 Esmertec AG.
5  * Copyright (C) 2008 The Android Open Source Project
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 -->
20
21 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
22     <PreferenceCategory android:title="@string/setting_title">
23         <CheckBoxPreference
24                 android:key="hide-offline-contacts"
25                 android:title="@string/hide_offline_contacts"
26                 android:defaultValue="false"
27                 android:persistent="false" />
28     </PreferenceCategory>
29
30     <PreferenceCategory android:title="@string/notification_group_title">
31
32         <CheckBoxPreference
33                 android:key="enable-notifications"
34                 android:title="@string/notification_enabled_title"
35                 android:summary="@string/notification_enabled_summary"
36                 android:defaultValue="true"
37                 android:persistent="false" />
38
39         <CheckBoxPreference
40                 android:layout="?android:attr/preferenceLayoutChild"
41                 android:dependency="enable-notifications"
42                 android:key="notification-vibrate"
43                 android:defaultValue="false"
44                 android:persistent="false"
45                 android:title="@string/notification_vibrate_title"
46                 android:summary="@string/notification_vibrate_summary" />
47
48         <CheckBoxPreference
49                 android:layout="?android:attr/preferenceLayoutChild"
50                 android:dependency="enable-notifications"
51                 android:defaultValue="true"
52                 android:persistent="false"
53                 android:key="notification-sound"
54                 android:title="@string/notification_sound_title"
55                 android:summary="@string/notification_sound_summary" />
56
57         <com.android.im.app.ImRingtonePreference
58                 android:layout="?android:attr/preferenceLayoutChild"
59                 android:dependency="notification-sound"
60                 android:key="notification-ringtone"
61                 android:persistent="false"
62                 android:title="@string/notification_ringtone_title"
63                 android:ringtoneType="notification" />
64
65     </PreferenceCategory>
66
67 </PreferenceScreen>