Home | History | Annotate | Download | only in xml
      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 
     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 
     42     <com.android.server.telecom.MultiLineTitleEditTextPreference
     43         android:key="canned_response_pref_1"
     44         android:defaultValue="@string/respond_via_sms_canned_response_1"
     45         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
     46         android:persistent="false" />
     47 
     48     <com.android.server.telecom.MultiLineTitleEditTextPreference
     49         android:key="canned_response_pref_2"
     50         android:defaultValue="@string/respond_via_sms_canned_response_2"
     51         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
     52         android:persistent="false" />
     53 
     54     <com.android.server.telecom.MultiLineTitleEditTextPreference
     55         android:key="canned_response_pref_3"
     56         android:defaultValue="@string/respond_via_sms_canned_response_3"
     57         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
     58         android:persistent="false" />
     59 
     60     <com.android.server.telecom.MultiLineTitleEditTextPreference
     61         android:key="canned_response_pref_4"
     62         android:defaultValue="@string/respond_via_sms_canned_response_4"
     63         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title"
     64         android:persistent="false" />
     65 
     66 </PreferenceScreen>
     67