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     <com.android.server.telecom.MultiLineTitleEditTextPreference
     39         android:key="canned_response_pref_1"
     40         android:defaultValue="@string/respond_via_sms_canned_response_1"
     41         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
     42 
     43     <com.android.server.telecom.MultiLineTitleEditTextPreference
     44         android:key="canned_response_pref_2"
     45         android:defaultValue="@string/respond_via_sms_canned_response_2"
     46         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
     47 
     48     <com.android.server.telecom.MultiLineTitleEditTextPreference
     49         android:key="canned_response_pref_3"
     50         android:defaultValue="@string/respond_via_sms_canned_response_3"
     51         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
     52 
     53     <com.android.server.telecom.MultiLineTitleEditTextPreference
     54         android:key="canned_response_pref_4"
     55         android:defaultValue="@string/respond_via_sms_canned_response_4"
     56         android:dialogTitle="@string/respond_via_sms_edittext_dialog_title" />
     57 
     58 </PreferenceScreen>
     59