Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 1 | <?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 Lee | 477ac8c | 2015-06-11 10:40:49 -0700 | [diff] [blame^] | 38 | <!-- 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 Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 42 | <com.android.server.telecom.MultiLineTitleEditTextPreference |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 43 | android:key="canned_response_pref_1" |
| 44 | android:defaultValue="@string/respond_via_sms_canned_response_1" |
Andrew Lee | 477ac8c | 2015-06-11 10:40:49 -0700 | [diff] [blame^] | 45 | android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" |
| 46 | android:persistent="false" /> |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 47 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 48 | <com.android.server.telecom.MultiLineTitleEditTextPreference |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 49 | android:key="canned_response_pref_2" |
| 50 | android:defaultValue="@string/respond_via_sms_canned_response_2" |
Andrew Lee | 477ac8c | 2015-06-11 10:40:49 -0700 | [diff] [blame^] | 51 | android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" |
| 52 | android:persistent="false" /> |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 53 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 54 | <com.android.server.telecom.MultiLineTitleEditTextPreference |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 55 | android:key="canned_response_pref_3" |
| 56 | android:defaultValue="@string/respond_via_sms_canned_response_3" |
Andrew Lee | 477ac8c | 2015-06-11 10:40:49 -0700 | [diff] [blame^] | 57 | android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" |
| 58 | android:persistent="false" /> |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 59 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 60 | <com.android.server.telecom.MultiLineTitleEditTextPreference |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 61 | android:key="canned_response_pref_4" |
| 62 | android:defaultValue="@string/respond_via_sms_canned_response_4" |
Andrew Lee | 477ac8c | 2015-06-11 10:40:49 -0700 | [diff] [blame^] | 63 | android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" |
| 64 | android:persistent="false" /> |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 65 | |
| 66 | </PreferenceScreen> |