diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/number_picker_dialog.xml | 59 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 12 | ||||
-rw-r--r-- | res/xml-v21/preferences_application.xml | 26 | ||||
-rw-r--r-- | res/xml-v23/preferences_application.xml | 26 | ||||
-rw-r--r-- | res/xml/preferences_application.xml | 26 |
5 files changed, 149 insertions, 0 deletions
diff --git a/res/layout/number_picker_dialog.xml b/res/layout/number_picker_dialog.xml new file mode 100644 index 0000000..b94f9ad --- /dev/null +++ b/res/layout/number_picker_dialog.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2009, Google Inc. +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- +This layout file is used by the AlertDialog when displaying a list of items. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:gravity="center_horizontal" + android:layout_width="wrap_content" + android:layout_height="match_parent" > + + <TextView + android:id="@+id/header" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="1dip" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingTop="10dip" + android:orientation="horizontal"> + + <NumberPicker + android:id="@+id/number_picker" + android:layout_width="100dip" + android:layout_height="150dip" /> + + <TextView + android:id="@+id/unit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="10dp" + android:layout_gravity="center_vertical" + android:visibility="gone" /> + + </LinearLayout> + +</LinearLayout> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 674e3ec..4ad47e2 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -46,6 +46,18 @@ <string name="priority_normal">Normal</string> <string name="priority_high">High</string> + <!-- Storage specific Settings --> + <string name="sms_storage_pref_title">Storage</string> + <string name="pref_summary_auto_delete">Delete old messages as limits are reached</string> + <string name="auto_delete_pref_title">Delete old messages</string> + <string name="pref_summary_delete_limit"><xliff:g id="count">%1$s</xliff:g> messages per conversation</string> + <string name="sms_delete_pref_title">Text message limit</string> + <string name="mms_delete_pref_title">Multimedia message limit</string> + <string name="set">Set</string> + <string name="no">Cancel</string> + <string name="pref_messages_to_save">Set number of messages to save</string> + + <!-- Swipe to delete conversation --> <string name="swipe_to_delete_conversation_pref_title">Swipe to delete</string> <string name="swipe_to_delete_conversation_pref_summary">Swipe to the right to delete a conversation</string> diff --git a/res/xml-v21/preferences_application.xml b/res/xml-v21/preferences_application.xml index 8acbae1..4d39999 100644 --- a/res/xml-v21/preferences_application.xml +++ b/res/xml-v21/preferences_application.xml @@ -119,6 +119,32 @@ android:defaultValue="false" android:persistent="true" /> + <!--Storage Preferences--> + <PreferenceCategory + android:title="@string/sms_storage_pref_title" + android:key="storage_settings_pref_key"> + + <SwitchPreference + android:defaultValue="true" + android:key="auto_delete_pref_key" + android:summary="@string/pref_summary_auto_delete" + android:title="@string/auto_delete_pref_title" /> + + <Preference + android:key="sms_delete_limit_pref_key" + android:dependency="auto_delete_pref_key" + android:persistent="false" + android:summary="@string/pref_summary_delete_limit" + android:title="@string/sms_delete_pref_title" /> + + <Preference + android:key="mms_delete_limit_pref_key" + android:dependency="auto_delete_pref_key" + android:persistent="false" + android:summary="@string/pref_summary_delete_limit" + android:title="@string/mms_delete_pref_title" /> + </PreferenceCategory> + <!-- QuickMessage settings --> <PreferenceCategory android:title="@string/pref_quickmessage"> diff --git a/res/xml-v23/preferences_application.xml b/res/xml-v23/preferences_application.xml index 29a5a91..95ba3c3 100644 --- a/res/xml-v23/preferences_application.xml +++ b/res/xml-v23/preferences_application.xml @@ -121,6 +121,32 @@ android:defaultValue="false" android:persistent="true" /> + <!--Storage Preferences--> + <PreferenceCategory + android:title="@string/sms_storage_pref_title" + android:key="storage_settings_pref_key"> + + <SwitchPreference + android:defaultValue="true" + android:key="auto_delete_pref_key" + android:summary="@string/pref_summary_auto_delete" + android:title="@string/auto_delete_pref_title" /> + + <Preference + android:key="sms_delete_limit_pref_key" + android:dependency="auto_delete_pref_key" + android:persistent="false" + android:summary="@string/pref_summary_delete_limit" + android:title="@string/sms_delete_pref_title" /> + + <Preference + android:key="mms_delete_limit_pref_key" + android:dependency="auto_delete_pref_key" + android:persistent="false" + android:summary="@string/pref_summary_delete_limit" + android:title="@string/mms_delete_pref_title" /> + </PreferenceCategory> + <!-- QuickMessage settings --> <PreferenceCategory android:title="@string/pref_quickmessage"> diff --git a/res/xml/preferences_application.xml b/res/xml/preferences_application.xml index 0e8aa45..64bc7e2 100644 --- a/res/xml/preferences_application.xml +++ b/res/xml/preferences_application.xml @@ -119,6 +119,32 @@ android:defaultValue="false" android:persistent="true" /> + <!--Storage Preferences--> + <PreferenceCategory + android:title="@string/sms_storage_pref_title" + android:key="storage_settings_pref_key"> + + <SwitchPreference + android:defaultValue="true" + android:key="auto_delete_pref_key" + android:summary="@string/pref_summary_auto_delete" + android:title="@string/auto_delete_pref_title" /> + + <Preference + android:key="sms_delete_limit_pref_key" + android:dependency="auto_delete_pref_key" + android:persistent="false" + android:summary="@string/pref_summary_delete_limit" + android:title="@string/sms_delete_pref_title" /> + + <Preference + android:key="mms_delete_limit_pref_key" + android:dependency="auto_delete_pref_key" + android:persistent="false" + android:summary="@string/pref_summary_delete_limit" + android:title="@string/mms_delete_pref_title" /> + </PreferenceCategory> + <!-- QuickMessage settings --> <PreferenceCategory android:title="@string/pref_quickmessage"> |