blob: 3c658ef3dfd8b9d5e953e6b0efd9ad23a35d0dd8 [file] [log] [blame]
Ihab Awadff7493a2014-06-10 13:47:44 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<!-- Settings screen that lets the user manage the canned responses
18 for the "Respond via SMS" feature; see RespondViaSmsManager.java -->
19<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
20 android:title="@string/respond_via_sms_setting_title_2">
21
22 <!-- Ultra-simple implementation for now: just provide 4 fixed slots
23 with customizable strings. -->
24
25 <!-- TODO: Potential UI improvements:
26 (1) Allow editing the strings in place, rather than having to tap
27 each one and edit it via the popup dialog.
28 (2) Allow reordering the strings by drag-and-drop.
29 (3) Provide an "Add new string..." option? -->
30
31 <!-- The defaultValues here must agree with the values used with
32 prefs.getString() in RespondViaSmsManager.loadCannedResponses(). -->
33
34 <!-- Use MultiLineTitleEditTextPreference instead of the standard
35 EditTextPreference here, to allow the preference "title" to wrap
36 onto multiple lines if the customized messages are long enough. -->
37
Andrew Lee477ac8c2015-06-11 10:40:49 -070038 <!-- These preferences are not persisted, so that they will update
39 when the localization is changed. RespondViaSmsSettings handles
40 the logic of storing user-specified preference changes. -->
41
Tyler Gunn7cc70b42014-09-12 22:17:27 -070042 <com.android.server.telecom.MultiLineTitleEditTextPreference
Ihab Awadff7493a2014-06-10 13:47:44 -070043 android:key="canned_response_pref_1"
44 android:defaultValue="@string/respond_via_sms_canned_response_1"
Andrew Lee477ac8c2015-06-11 10:40:49 -070045 android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
46 android:persistent="false" />
Ihab Awadff7493a2014-06-10 13:47:44 -070047
Tyler Gunn7cc70b42014-09-12 22:17:27 -070048 <com.android.server.telecom.MultiLineTitleEditTextPreference
Ihab Awadff7493a2014-06-10 13:47:44 -070049 android:key="canned_response_pref_2"
50 android:defaultValue="@string/respond_via_sms_canned_response_2"
Andrew Lee477ac8c2015-06-11 10:40:49 -070051 android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
52 android:persistent="false" />
Ihab Awadff7493a2014-06-10 13:47:44 -070053
Tyler Gunn7cc70b42014-09-12 22:17:27 -070054 <com.android.server.telecom.MultiLineTitleEditTextPreference
Ihab Awadff7493a2014-06-10 13:47:44 -070055 android:key="canned_response_pref_3"
56 android:defaultValue="@string/respond_via_sms_canned_response_3"
Andrew Lee477ac8c2015-06-11 10:40:49 -070057 android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
58 android:persistent="false" />
Ihab Awadff7493a2014-06-10 13:47:44 -070059
Tyler Gunn7cc70b42014-09-12 22:17:27 -070060 <com.android.server.telecom.MultiLineTitleEditTextPreference
Ihab Awadff7493a2014-06-10 13:47:44 -070061 android:key="canned_response_pref_4"
62 android:defaultValue="@string/respond_via_sms_canned_response_4"
Andrew Lee477ac8c2015-06-11 10:40:49 -070063 android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
64 android:persistent="false" />
Ihab Awadff7493a2014-06-10 13:47:44 -070065
66</PreferenceScreen>