diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/preference_mailbox_item.xml | 58 | ||||
-rw-r--r-- | res/values/cm_dimens.xml | 20 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 8 | ||||
-rw-r--r-- | res/xml/mailbox_notifications_preferences.xml | 36 |
4 files changed, 122 insertions, 0 deletions
diff --git a/res/layout/preference_mailbox_item.xml b/res/layout/preference_mailbox_item.xml new file mode 100644 index 000000000..07d3ba83f --- /dev/null +++ b/res/layout/preference_mailbox_item.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The CyanogenMod 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="48dp" + android:background="?android:attr/activatedBackgroundIndicator" + android:gravity="center_vertical" + android:paddingStart="24dip" + android:paddingEnd="?android:attr/scrollbarSize"> + + <View + android:id="@+id/spacer" + android:layout_width="0dp" + android:layout_height="wrap_content" /> + + <ImageView + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="0dip" + android:layout_marginEnd="8dip" + android:layout_gravity="center" /> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="0dip" + android:layout_marginEnd="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1"> + + <TextView android:id="@+android:id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceListItem" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> + + </RelativeLayout> + +</LinearLayout> diff --git a/res/values/cm_dimens.xml b/res/values/cm_dimens.xml new file mode 100644 index 000000000..6748f80d3 --- /dev/null +++ b/res/values/cm_dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The CaynogenMod 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. +--> + +<resources> + <!-- Folder settings --> + <dimen name="child_folder_indent">8dp</dimen> +</resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 0e3594f64..c0534bfb1 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -21,4 +21,12 @@ account <xliff:g id="account">%s</xliff:g>. This operation cannot be undone.\n\nContinue?</string> <string name="deleting_account_msg">Deleting account\u2026</string> <string name="delete_account_failed">Couldn\'t delete the account</string> + + <!-- Mailbox notification settings activity title [CHAR LIMIT=none] --> + <string name="mailbox_notify_settings_activity_title">Notification options</string> + <!-- Mailbox settings activity title, with the target folder name [CHAR LIMIT=none] --> + <string name="mailbox_notify_settings_activity_title_with_mailbox">Notification options (<xliff:g id="mailbox_name" example="Family">%s</xliff:g>)</string> + + <!-- Name for preference entry which leads to the per-folder notification settings activity --> + <string name="folder_notify_settings_pref_title">Folder notification settings</string> </resources> diff --git a/res/xml/mailbox_notifications_preferences.xml b/res/xml/mailbox_notifications_preferences.xml new file mode 100644 index 000000000..76841420c --- /dev/null +++ b/res/xml/mailbox_notifications_preferences.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The CyanogenMod 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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <CheckBoxPreference + android:key="notifications-enabled" + android:title="@string/account_settings_notify_label" + android:defaultValue="true" + android:summary="@string/account_settings_notify_summary" /> + + <Preference + android:key="notification-ringtone" + android:dependency="notifications-enabled" + android:title="@string/account_settings_ringtone" /> + + <CheckBoxPreference + android:key="notification-vibrate" + android:dependency="notifications-enabled" + android:defaultValue="false" + android:title="@string/label_notification_vibrate_title" /> + +</PreferenceScreen> |