Made QKSMS open source

This commit is contained in:
Moez Bhatti
2015-08-16 12:02:49 -04:00
parent c664bbcbde
commit cc5e19575c
742 changed files with 135533 additions and 4 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="ga_sessionTimeout">300</integer>
<bool name="ga_autoActivityTracking">true</bool>
<string name="ga_trackingId">0</string>
</resources>
+112
View File
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
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.
-->
<!-- Version History
version 1 - initial version.
version 2 - added recipientLimit.
version 3 - added min/max recycler values.
version 4 - added sms to mms text threshold.
-->
<mms_config version="4">
<!-- Flag indicating whether MMS should be enabled -->
<bool name="enabledMMS">true</bool>
<!-- Maximum number of SMS message to save per thread before auto-delete kicks in.
This is the default value. -->
<int name="defaultSMSMessagesPerThread">500</int>
<!-- Maximum number of MMS message to save per thread before auto-delete kicks in.
This is the default value. -->
<int name="defaultMMSMessagesPerThread">50</int>
<!-- Minimum value for the number of messages kept per conversation. The user can never
set the limit below this value. -->
<int name="minMessageCountPerThread">10</int>
<!-- Maximum value for the number of messages kept per conversation. The user can never
set the limit above this value. -->
<int name="maxMessageCountPerThread">5000</int>
<!-- UAProf URL -->
<string name="uaProfUrl">http://www.google.com/oha/rdf/ua-profile-kila.xml</string>
<!-- Maximum number of recipients allowed per message. Use a value of -1
to indicate no limit. -->
<int name="recipientLimit">-1</int>
<!-- If true, The text message over 160 characters will be sent in multi part.
If false, The text message over 160 characters will be sent
via multi media message. -->
<bool name="enableMultipartSMS">true</bool>
<!-- If true, the text message will be split every 160 characters.
If false, the text will never be split before being sent. -->
<bool name="enableSplitSMS">false</bool>
<!-- If enableMultipartSMS is true and smsToMmsTextThreshold > 1, then multi-part SMS messages
will be converted into a single mms message. For example, if the mms_config.xml file
specifies <int name="smsToMmsTextThreshold">7</int>, then on the 8th sms segment, the
message will be converted to an mms. -->
<int name="smsToMmsTextThreshold">-1</int>
<!-- If true, The mms support slide duration.
If false, The mms does not support slide duration and we have to
set duration value. -->
<bool name="enableSlideDuration">true</bool>
<!-- Maximum length for message text. Use a value of -1
to indicate default value -->
<int name="maxMessageTextSize">-1</int>
<!-- Hide Sprint VVM text messages. -->
<bool name="enableSprintVVM">false</bool>
<!-- Default apn settings -->
<string name="mmsc"> </string>
<string name="mmsproxy"> </string>
<string name="mmsport"> </string>
<!-- User-Agent parameter used in MMS http request -->
<!-- this is default to "Android-Mms/0.1". Override if necessary. Optional -->
<!--
<string name="userAgent">Android-Mms/0.1</string>
-->
<!-- UAProf parameter tag name -->
<!-- this is default to "x-wap-profile". Override if necessary. Optional -->
<!--
<string name="uaProfTagName">x-wap-profile</string>
-->
<!-- Reference for additional http parameters used in MMS http request.
Parameters are seperated by '|'. Optional.
-->
<!--
<string name="httpParams">
x-up-calling-line-id: ##LINE1##|x-carrier-magic: http://magic.google.com
</string>
-->
<!-- Reference for the substitution key to be used when adding the users telephone number
(Line1) to the httpPrams at runtime. Optional.
-->
<!--
<string name="httpParamsLine1Key">##LINE1##</string>
-->
</mms_config>
+176
View File
@@ -0,0 +1,176 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:defaultValue="-16746133"
android:key="pref_key_theme" />
<Preference
android:key="pref_key_icon" />
<Preference
android:defaultValue="@bool/hasL"
android:key="pref_key_status_tint" />
<Preference
android:defaultValue="false"
android:key="pref_key_navigation_tint" />
<Preference
android:defaultValue="false"
android:key="pref_key_night" />
<Preference
android:defaultValue="false"
android:key="pref_key_night_amoled" />
<Preference
android:defaultValue="true"
android:key="pref_key_colour_sent" />
<Preference
android:defaultValue="false"
android:key="pref_key_colour_received" />
<Preference
android:defaultValue="false"
android:key="pref_key_hide_avatar_conversations" />
<Preference
android:defaultValue="true"
android:key="pref_key_hide_avatar_sent" />
<Preference
android:defaultValue="false"
android:key="pref_key_hide_avatar_received" />
<Preference
android:defaultValue="0"
android:key="pref_key_font_family" />
<Preference
android:defaultValue="1"
android:key="pref_key_font_size" />
<Preference
android:defaultValue="0"
android:key="pref_key_font_weight" />
<Preference
android:defaultValue="false"
android:key="pref_key_message_count" />
<Preference
android:defaultValue="false"
android:key="pref_key_sliding_tab" />
<Preference
android:defaultValue="false"
android:key="pref_key_24h" />
<Preference
android:defaultValue="false"
android:key="pref_key_return" />
<!-- GENERAL -->
<Preference
android:defaultValue="true"
android:key="pref_key_auto_emoji" />
<Preference
android:defaultValue="true"
android:key="pref_key_compose_favorites" />
<Preference
android:defaultValue="false"
android:key="pref_key_prox_sensor_calling" />
<Preference
android:defaultValue="0"
android:key="pref_key_enter_button" />
<Preference
android:defaultValue="false"
android:key="pref_key_delivery" />
<Preference
android:defaultValue="true"
android:key="pref_key_delivery_vibrate" />
<Preference
android:defaultValue="false"
android:key="pref_key_mobile_only" />
<Preference
android:defaultValue="false"
android:key="pref_key_strip_unicode" />
<Preference
android:defaultValue="false"
android:key="pref_key_split" />
<Preference
android:defaultValue="true"
android:key="pref_key_split_counter" />
<Preference
android:defaultValue="false"
android:key="pref_key_endlessjabber" />
<!-- NOTIFICATIONS -->
<Preference
android:defaultValue="true"
android:key="pref_key_notifications" />
<Preference
android:defaultValue="true"
android:key="pref_key_led" />
<Preference
android:defaultValue="-48060"
android:key="pref_key_theme_led" />
<Preference
android:defaultValue="false"
android:key="pref_key_wake" />
<Preference
android:defaultValue="true"
android:key="pref_key_ticker" />
<Preference
android:defaultValue="false"
android:key="pref_key_notifications_private" />
<Preference
android:defaultValue="true"
android:key="pref_key_vibration" />
<Preference
android:defaultValue="content://settings/system/notification_sound"
android:key="pref_key_ringtone" />
<Preference
android:defaultValue="false"
android:key="pref_key_notification_call" />
<!-- QKSMS+ -->
<Preference
android:defaultValue="false"
android:key="pref_key_delayed" />
<Preference
android:defaultValue="false"
android:key="pref_key_night_auto" />
<Preference
android:defaultValue="6:00"
android:key="pref_key_day_start" />
<Preference
android:defaultValue="21:00"
android:key="pref_key_night_start" />
<!-- MMS -->
<Preference
android:defaultValue="false"
android:key="pref_key_compose_group" />
<Preference
android:defaultValue="true"
android:key="pref_key_auto_data" />
<Preference
android:defaultValue="false"
android:key="pref_key_long_as_mms" />
<Preference
android:defaultValue="3"
android:key="pref_key_long_as_mms_after" />
<Preference
android:defaultValue="300kb"
android:key="pref_mms_max_attachment_size" />
<!-- QUICKREPLY -->
<Preference
android:defaultValue="true"
android:key="pref_key_quickreply_enabled" />
<Preference
android:defaultValue="true"
android:key="pref_key_quickreply_dismiss" />
<!-- QUICKCOMPOSE -->
<Preference
android:defaultValue="false"
android:key="pref_key_quickcompose" />
<!-- ADVANCED -->
<Preference
android:defaultValue="false"
android:key="pref_key_system_bar_flat" />
<Preference
android:defaultValue="false"
android:key="pref_key_status_compat" />
<Preference
android:defaultValue="false"
android:key="pref_key_navigation_compat" />
</PreferenceScreen>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_about">
<Preference
android:key="pref_key_version"
android:layout="@layout/list_item_preference"
android:title="@string/pref_about_version_title" />
<Preference
android:key="pref_key_changelog"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_changelog_summary"
android:title="@string/title_changelog" />
<Preference
android:key="pref_key_authors"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_about_authors_summary"
android:title="@string/pref_about_authors_title" />
<Preference
android:key="pref_key_thanks"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_about_thanks_summary"
android:title="@string/pref_about_thanks_title" />
<Preference
android:icon="@drawable/ic_donate"
android:key="pref_key_donate"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_donate_summary"
android:title="@string/pref_donate_title" />
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_advanced">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_system_bar_flat"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_system_bar_flat_summary"
android:title="@string/pref_system_bar_flat"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_status_compat"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_status_compat_summary"
android:title="@string/pref_status_compat"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,147 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_subcat_theme">
<Preference
android:defaultValue="-16746133"
android:key="pref_key_theme"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_theme_summary_alt"
android:title="@string/pref_theme" />
<Preference
android:defaultValue="-16746133"
android:key="pref_key_icon"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_icon_summary"
android:title="@string/pref_icon" />
<ListPreference
android:defaultValue="#FFEEEEEE"
android:entries="@array/background_titles"
android:entryValues="@array/background_values"
android:key="pref_key_background"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_background_summary"
android:title="@string/pref_background" />
<Preference
android:key="pref_key_bubbles"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_bubbles_summary"
android:title="@string/pref_bubbles" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_night_auto">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_night_auto"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_night_auto_summary"
android:title="@string/pref_night_auto"
android:widgetLayout="@layout/view_checkbox" />
<Preference
android:defaultValue="6:00"
android:dependency="pref_key_night_auto"
android:key="pref_key_day_start"
android:layout="@layout/list_item_preference"
android:title="@string/pref_day_start" />
<Preference
android:defaultValue="21:00"
android:dependency="pref_key_night_auto"
android:key="pref_key_night_start"
android:layout="@layout/list_item_preference"
android:title="@string/pref_night_start" />
</PreferenceCategory>
<PreferenceCategory
android:key="pref_key_category_appearance_status_bars"
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_subcat_system_bars">
<CheckBoxPreference
android:defaultValue="@bool/hasL"
android:key="pref_key_status_tint"
android:layout="@layout/list_item_preference"
android:title="@string/pref_status_tint"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_subcat_font">
<ListPreference
android:defaultValue="0"
android:entries="@array/font_families"
android:entryValues="@array/font_family_codes"
android:key="pref_key_font_family"
android:layout="@layout/list_item_preference"
android:title="@string/pref_font_family" />
<ListPreference
android:defaultValue="1"
android:entries="@array/font_sizes"
android:entryValues="@array/font_size_codes"
android:key="pref_key_font_size"
android:layout="@layout/list_item_preference"
android:title="@string/pref_font_size" />
<ListPreference
android:defaultValue="0"
android:entries="@array/font_weights"
android:entryValues="@array/font_weight_codes"
android:key="pref_key_font_weight"
android:layout="@layout/list_item_preference"
android:title="@string/pref_font_weight" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_subcat_avatars">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_hide_avatar_conversations"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_hide_avatar_conversations_summary"
android:title="@string/pref_hide_avatar_conversations"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_hide_avatar_sent"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_hide_avatar_sent_summary"
android:title="@string/pref_hide_avatar_sent"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_hide_avatar_received"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_hide_avatar_received_summary"
android:title="@string/pref_hide_avatar_received"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_general">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_message_count"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_message_count_summary"
android:title="@string/pref_message_count"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_sliding_tab"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_sliding_tab_summary"
android:title="@string/pref_sliding_tab"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_24h"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_24h_summary"
android:title="@string/pref_24h"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
</PreferenceScreen>
+134
View File
@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_delayed">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_delayed"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_delayed_summary"
android:title="@string/pref_delayed"
android:widgetLayout="@layout/view_checkbox" />
<EditTextPreference
android:defaultValue="3"
android:dependency="pref_key_delayed"
android:inputType="number"
android:key="pref_key_delay_duration"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_delayed_duration_summary"
android:title="@string/pref_delayed_duration" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_delivery">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_delivery"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_delivery_summary"
android:title="@string/pref_delivery"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="pref_key_delivery"
android:key="pref_key_delivery_toast"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_delivery_toast_summary"
android:title="@string/pref_delivery_toast"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="pref_key_delivery"
android:key="pref_key_delivery_vibrate"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_delivery_vibrate_summary"
android:title="@string/pref_delivery_vibrate"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_text">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_auto_emoji"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_auto_emoji_summary"
android:title="@string/pref_auto_emoji"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_markdown_enabled"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_markdown_enabled_summary"
android:title="@string/pref_markdown_enabled"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_strip_unicode"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_strip_unicode_summary"
android:title="@string/pref_strip_unicode"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_split"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_split_summary"
android:title="@string/pref_split"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_split_counter"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_split_counter_summary"
android:title="@string/pref_split_counter"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_general">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_mobile_only"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_mobile_only_summary"
android:title="@string/pref_mobile_only"
android:widgetLayout="@layout/view_checkbox" />
<ListPreference
android:defaultValue="0"
android:entries="@array/enter_button_options"
android:entryValues="@array/enter_button_values"
android:key="pref_key_enter_button"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_enter_button_summary"
android:title="@string/pref_enter_button" />
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_compose_favorites"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_compose_summary_favorites"
android:title="@string/pref_compose_favorites"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_prox_sensor_calling"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_prox_sensor_call_summary"
android:title="@string/pref_prox_sensor_call"
android:widgetLayout="@layout/view_checkbox" />
<Preference
android:key="pref_key_qk_responses"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_qk_responses_summary"
android:title="@string/pref_qk_responses" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_endlessjabber"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_endlessjabber_summary"
android:title="@string/pref_yappy"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
</PreferenceScreen>
+82
View File
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:defaultValue="-16746133"
android:key="pref_key_theme"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_theme_summary_alt"
android:title="@string/pref_theme" />
<ListPreference
android:defaultValue="#FFEEEEEE"
android:entries="@array/background_titles"
android:entryValues="@array/background_values"
android:key="pref_key_background"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_background_summary"
android:title="@string/pref_background" />
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_subcat_categories">
<Preference
android:icon="@drawable/ic_palette"
android:key="pref_key_category_appearance"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_appearance"
android:title="@string/pref_category_appearance" />
<Preference
android:icon="@drawable/ic_settings"
android:key="pref_key_category_general"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_general"
android:title="@string/pref_category_general" />
<Preference
android:icon="@drawable/ic_notifications"
android:key="pref_key_category_notifications"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_notifications"
android:title="@string/pref_category_notifications" />
<Preference
android:icon="@drawable/ic_photo"
android:key="pref_key_category_mms"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_mms"
android:title="@string/pref_category_mms" />
<Preference
android:icon="@drawable/ic_reply"
android:key="pref_key_category_quickreply"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_quickreply"
android:title="@string/pref_category_quickreply" />
<Preference
android:icon="@drawable/ic_compose"
android:key="pref_key_category_quickcompose"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_quickcompose"
android:title="@string/pref_category_quickcompose" />
<Preference
android:icon="@drawable/ic_more"
android:key="pref_key_category_advanced"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_advanced"
android:title="@string/pref_category_advanced" />
<Preference
android:icon="@drawable/ic_info_fill"
android:key="pref_key_category_about"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_category_summary_about"
android:title="@string/pref_category_about" />
<Preference
android:icon="@drawable/ic_fold"
android:key="pref_key_simple"
android:layout="@layout/list_item_preference"
android:title="@string/pref_show_fewer" />
<Preference
android:icon="@drawable/ic_donate"
android:key="pref_key_donate"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_donate_summary"
android:title="@string/pref_donate_title" />
</PreferenceCategory>
</PreferenceScreen>
+80
View File
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!--<Preference
android:key="pref_key_mms_enabled"
android:layout="@layout/preference"
android:summary="@string/pref_mms_enabled_summary"
android:title="@string/pref_mms_enabled" />-->
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_compose_group"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_compose_group_summary"
android:title="@string/pref_compose_group"
android:widgetLayout="@layout/view_checkbox" />
<!--<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_auto_download"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_auto_download_summary"
android:title="@string/pref_auto_download"
android:widgetLayout="@layout/view_checkbox" />-->
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_auto_data"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_auto_data_summary"
android:title="@string/pref_auto_data"
android:widgetLayout="@layout/view_checkbox" />
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_sending_mms">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_long_as_mms"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_long_as_mms_summary"
android:title="@string/pref_long_as_mms"
android:widgetLayout="@layout/view_checkbox" />
<EditTextPreference
android:defaultValue="3"
android:dependency="pref_key_long_as_mms"
android:inputType="number"
android:key="pref_key_long_as_mms_after"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_long_as_mms_after_summary"
android:title="@string/pref_long_as_mms_after" />
<ListPreference
android:defaultValue="300kb"
android:entries="@array/max_mms_attachment_sizes"
android:entryValues="@array/max_mms_attachment_size_values"
android:key="pref_mms_max_attachment_size"
android:layout="@layout/list_item_preference"
android:title="@string/pref_max_mms_attachment_size" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_mms_configuration">
<Preference
android:key="pref_key_automatically_configure_mms"
android:layout="@layout/list_item_preference"
android:title="@string/pref_automatically_configure_mms" />
<!--<Preference
android:key="pref_key_mms_contact_support"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_mms_contact_support_summary"
android:title="@string/pref_mms_contact_support" />-->
<EditTextPreference
android:key="mmsc_url"
android:layout="@layout/list_item_preference"
android:title="@string/pref_mmsc_url" />
<EditTextPreference
android:key="mms_proxy"
android:layout="@layout/list_item_preference"
android:title="@string/pref_mms_proxy" />
<EditTextPreference
android:key="mms_port"
android:layout="@layout/list_item_preference"
android:title="@string/pref_mms_port" />
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_notifications">
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_notifications"
android:layout="@layout/list_item_preference"
android:title="@string/pref_notifications"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="pref_key_notifications"
android:key="pref_key_led"
android:layout="@layout/list_item_preference"
android:title="@string/pref_led"
android:widgetLayout="@layout/view_checkbox" />
<Preference
android:defaultValue="-48060"
android:dependency="pref_key_led"
android:key="pref_key_theme_led"
android:layout="@layout/list_item_preference"
android:title="@string/pref_theme_led" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="pref_key_notifications"
android:key="pref_key_wake"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_wake_summary"
android:title="@string/pref_wake"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="@bool/preL"
android:dependency="pref_key_notifications"
android:key="pref_key_ticker"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_ticker_summary"
android:title="@string/pref_ticker"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="pref_key_notifications"
android:key="pref_key_notifications_private"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_notifications_private_summary"
android:title="@string/pref_notifications_private"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="pref_key_notifications"
android:key="pref_key_vibration"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_vibration_summary"
android:title="@string/pref_vibration"
android:widgetLayout="@layout/view_checkbox" />
<RingtonePreference
android:defaultValue="content://settings/system/notification_sound"
android:dependency="pref_key_notifications"
android:key="pref_key_ringtone"
android:layout="@layout/list_item_preference"
android:ringtoneType="notification"
android:summary="@string/pref_ringtone_summary"
android:title="@string/pref_ringtone" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="pref_key_notifications"
android:key="pref_key_notification_call"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_notification_call_summary"
android:title="@string/pref_notification_call"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="@string/pref_category_quickcompose"
android:layout="@layout/list_item_preference_category">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_quickcompose"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_quickcompose_summary"
android:title="@string/pref_quickcompose"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_quickreply">
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_quickreply_enabled"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_quickreply_enabled_summary"
android:title="@string/pref_quickreply_enabled"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_quickreply_dismiss"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_tap_to_quit_summary"
android:title="@string/pref_tap_to_quit"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
</PreferenceScreen>
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_appearance">
<Preference
android:defaultValue="-16746133"
android:key="pref_key_theme"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_theme_summary_alt"
android:title="@string/pref_theme" />
<Preference
android:defaultValue="-16746133"
android:key="pref_key_icon"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_icon_summary"
android:title="@string/pref_icon" />
<ListPreference
android:defaultValue="#FFEEEEEE"
android:entries="@array/background_titles"
android:entryValues="@array/background_values"
android:key="pref_key_background"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_background_summary"
android:title="@string/pref_background" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_general">
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_markdown_enabled"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_markdown_enabled_summary"
android:title="@string/pref_markdown_enabled"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_delivery"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_delivery_summary"
android:title="@string/pref_delivery"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_key_compose_group"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_compose_group_summary"
android:title="@string/pref_compose_group"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_notifications">
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_notifications"
android:layout="@layout/list_item_preference"
android:title="@string/pref_notifications"
android:widgetLayout="@layout/view_checkbox" />
<CheckBoxPreference
android:defaultValue="true"
android:dependency="pref_key_notifications"
android:key="pref_key_led"
android:layout="@layout/list_item_preference"
android:title="@string/pref_led"
android:widgetLayout="@layout/view_checkbox" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/pref_category_about">
<Preference
android:key="pref_key_version"
android:layout="@layout/list_item_preference"
android:title="@string/pref_about_version_title" />
</PreferenceCategory>
<PreferenceCategory
android:layout="@layout/list_item_preference_category"
android:title="@string/more">
<Preference
android:icon="@drawable/ic_unfold"
android:key="pref_key_simple"
android:layout="@layout/list_item_preference"
android:title="@string/pref_show_all" />
<Preference
android:icon="@drawable/ic_donate"
android:key="pref_key_donate"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_donate_summary"
android:title="@string/pref_donate_title" />
</PreferenceCategory>
</PreferenceScreen>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialLayout="@layout/widget"
android:minHeight="220dp"
android:minWidth="220dp"
android:previewImage="@mipmap/ic_launcher_teal"
android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="0"
android:widgetCategory="home_screen|keyguard" />