diff options
author | twyen <twyen@google.com> | 2018-06-25 15:25:35 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-26 13:44:21 -0700 |
commit | 84a6d29f889148c49db278f0682bbdf8d8466b1f (patch) | |
tree | 66c17b71e60b0f84ea98b8cf69f64570ff1718d1 /java/com/android/dialer/contacts/resources/res/values | |
parent | 38e0ed4c08726d20f3ab68da0328b0ca8bb92ec7 (diff) |
Move contacts.commons.R to dialer.contacts.resources
This reduces dependency on contacts.common which is full of things that should not be there.
Ideally resources inside dialer.contacts.resources should be individually moved to appropriate locations, but the resources are too large to work with.
TEST=TAP
Test: TAP
PiperOrigin-RevId: 202029832
Change-Id: I95bfcb59799b9c3640de03ad0680624fc1b2c3a3
Diffstat (limited to 'java/com/android/dialer/contacts/resources/res/values')
9 files changed, 885 insertions, 0 deletions
diff --git a/java/com/android/dialer/contacts/resources/res/values/animation_constants.xml b/java/com/android/dialer/contacts/resources/res/values/animation_constants.xml new file mode 100644 index 000000000..9eec7d6c8 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/animation_constants.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2014 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 + --> +<resources> + <integer name="floating_action_button_animation_duration">250</integer> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/attrs.xml b/java/com/android/dialer/contacts/resources/res/values/attrs.xml new file mode 100644 index 000000000..44d04f025 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/attrs.xml @@ -0,0 +1,83 @@ +<!-- + ~ Copyright (C) 2012 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. + --> + +<resources> + <declare-styleable name="Theme"> + <attr name="android:textColorSecondary"/> + </declare-styleable> + + <declare-styleable name="ContactsDataKind"> + <!-- Mime-type handled by this mapping. --> + <attr name="android:mimeType"/> + <!-- Icon used to represent data of this kind. --> + <attr name="android:icon"/> + <!-- Column in data table that summarizes this data. --> + <attr name="android:summaryColumn"/> + <!-- Column in data table that contains details for this data. --> + <attr name="android:detailColumn"/> + <!-- Flag indicating that detail should be built from SocialProvider. --> + <attr name="android:detailSocialSummary"/> + <!-- Resource representing the term "All Contacts" (e.g. "All Friends" or + "All connections"). Optional (Default is "All Contacts"). --> + <attr name="android:allContactsName"/> + </declare-styleable> + + <declare-styleable name="ContactListItemView"> + <attr format="dimension" name="list_item_height"/> + <attr format="dimension" name="list_section_header_height"/> + <attr format="reference" name="activated_background"/> + <attr format="reference" name="section_header_background"/> + <attr format="dimension" name="list_item_padding_top"/> + <attr format="dimension" name="list_item_padding_right"/> + <attr format="dimension" name="list_item_padding_bottom"/> + <attr format="dimension" name="list_item_padding_left"/> + <attr format="dimension" name="list_item_gap_between_image_and_text"/> + <attr format="dimension" name="list_item_gap_between_label_and_data"/> + <attr format="dimension" name="list_item_presence_icon_margin"/> + <attr format="dimension" name="list_item_presence_icon_size"/> + <attr format="dimension" name="list_item_photo_size"/> + <attr format="dimension" name="list_item_profile_photo_size"/> + <attr format="color" name="list_item_prefix_highlight_color"/> + <attr format="color" name="list_item_background_color"/> + <attr format="dimension" name="list_item_header_text_indent"/> + <attr format="color" name="list_item_header_text_color"/> + <attr format="dimension" name="list_item_header_text_size"/> + <attr format="dimension" name="list_item_header_height"/> + <attr format="color" name="list_item_name_text_color"/> + <attr format="dimension" name="list_item_name_text_size"/> + <attr format="dimension" name="list_item_text_indent"/> + <attr format="dimension" name="list_item_text_offset_top"/> + <attr format="integer" name="list_item_data_width_weight"/> + <attr format="integer" name="list_item_label_width_weight"/> + <attr format="dimension" name="list_item_video_call_icon_size"/> + <attr format="dimension" name="list_item_video_call_icon_margin"/> + </declare-styleable> + + <declare-styleable name="ContactBrowser"> + <attr format="dimension" name="contact_browser_list_padding_left"/> + <attr format="dimension" name="contact_browser_list_padding_right"/> + <attr format="reference" name="contact_browser_background"/> + </declare-styleable> + + <declare-styleable name="ProportionalLayout"> + <attr format="string" name="direction"/> + <attr format="float" name="ratio"/> + </declare-styleable> + + <declare-styleable name="Favorites"> + <attr format="dimension" name="favorites_padding_bottom"/> + </declare-styleable> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/colors.xml b/java/com/android/dialer/contacts/resources/res/values/colors.xml new file mode 100644 index 000000000..ab9f19b29 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/colors.xml @@ -0,0 +1,51 @@ +<!-- + ~ Copyright (C) 2012 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 + --> + +<resources> + <!-- Color of the theme of the People app --> + <color name="people_app_theme_color">#363636</color> + + <!-- Darker versions of letter_tile_colors, two shades darker. These colors are used + for settings secondary activity colors. --> + <array name="letter_tile_colors_dark"> + <item>#C53929</item> + <item>#C2185B</item> + <item>#7B1FA2</item> + <item>#512DA8</item> + <item>#303F9F</item> + <item>#3367D6</item> + <item>#0277BD</item> + <item>#006064</item> + <item>#00796B</item> + <item>#0B8043</item> + <item>#33691E</item> + <item>#E65100</item> + <item>#E64A19</item> + <item>#424242</item> + </array> + + <!-- Text color used for character counter when the max limit has been exceeded --> + <color name="call_subject_limit_exceeded">#d1041c</color> + + <!-- Tint color for the call subject history icon. --> + <color name="call_subject_history_icon">#000000</color> + + <!-- Divider line on the call subject dialog. --> + <color name="call_subject_divider">#d8d8d8</color> + + <!-- Text color for the SEND & CALL button on the call subject dialog. --> + <color name="call_subject_button">#00c853</color> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/dimens.xml b/java/com/android/dialer/contacts/resources/res/values/dimens.xml new file mode 100644 index 000000000..df3e53c77 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/dimens.xml @@ -0,0 +1,99 @@ +<!-- + ~ Copyright (C) 2012 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 + --> + +<resources xmlns:tools="http://schemas.android.com/tools"> + + <!-- Padding between the action bar's bottom edge and the first header + in contacts/group lists. --> + <dimen name="list_header_extra_top_padding">0dip</dimen> + + <!-- Minimum height used with @drawable/list_section_divider_holo_custom. + Right now the drawable has implicit 32dip minimal height, which is confusing. + This value is for making the hidden configuration explicit in xml. --> + <dimen name="list_section_divider_min_height">32dip</dimen> + + <dimen name="directory_header_extra_top_padding">18dp</dimen> + <dimen name="directory_header_extra_bottom_padding">8dp</dimen> + + <!-- Padding to be used between a visible scrollbar and the contact list --> + <dimen name="list_visible_scrollbar_padding">32dip</dimen> + + <dimen name="contact_browser_list_header_left_margin">16dip</dimen> + <dimen name="contact_browser_list_header_right_margin">@dimen/list_visible_scrollbar_padding + </dimen> + <dimen name="contact_browser_list_item_text_indent">8dip</dimen> + <!-- Width of a contact list item section header. --> + <dimen name="contact_list_section_header_width">56dp</dimen> + + <!-- contact browser list margins --> + <dimen name="contact_browser_list_item_text_size">16sp</dimen> + <dimen name="contact_browser_list_item_photo_size">40dp</dimen> + <dimen name="contact_browser_list_item_gap_between_image_and_text">15dp</dimen> + + <!-- Height of the floating action button --> + <dimen name="floating_action_button_height">56dp</dimen> + <!-- Width of the floating action button --> + <dimen name="floating_action_button_width">56dp</dimen> + <!-- Z translation of the floating action button --> + <dimen name="floating_action_button_translation_z">8dp</dimen> + <!-- Right margin of the floating action button --> + <dimen name="floating_action_button_margin_right">16dp</dimen> + <!-- Bottom margin of the floating action button --> + <dimen name="floating_action_button_margin_bottom">16dp</dimen> + + <!-- Height of the selection indicator of a tab. --> + <dimen name="tab_selected_underline_height">2dp</dimen> + <!-- Size of text in tabs. --> + <dimen name="tab_text_size">14sp</dimen> + <dimen name="tab_elevation">0dp</dimen> + <dimen name="tab_unread_count_background_size">16dp</dimen> + <dimen name="tab_unread_count_background_radius">2dp</dimen> + <dimen name="tab_unread_count_margin_left">0dp</dimen> + <dimen name="tab_unread_count_margin_top">2dp</dimen> + <dimen name="tab_unread_count_text_size">12sp</dimen> + <dimen name="tab_unread_count_text_padding">2dp</dimen> + + <!-- Size of the icon (voice search, back arrow) in the search box. --> + <dimen name="search_box_icon_size">48dp</dimen> + <!-- Size of the close icon.--> + <dimen name="search_box_close_icon_size">56dp</dimen> + <!-- Padding around the close button. It's visible size without padding is 24dp. --> + <dimen name="search_box_close_icon_padding">16dp</dimen> + <!-- Padding around back arrow icon in the search box --> + <dimen name="search_box_navigation_icon_margin">14dp</dimen> + <!-- Left margin of the text field in the search box. --> + <dimen name="search_box_text_left_margin">15dp</dimen> + <!-- Search box text size --> + <dimen name="search_text_size">16sp</dimen> + + <dimen name="contact_list_card_elevation">2dp</dimen> + + <!-- Padding used around the periphery of the call subject dialog, as well as in between the + items. --> + <dimen name="call_subject_dialog_margin">20dp</dimen> + <!-- Padding used between lines of text in the call subject dialog. --> + <dimen name="call_subject_dialog_between_line_margin">8dp</dimen> + <!-- Size of the contact photo in the call subject dialog. --> + <dimen name="call_subject_dialog_contact_photo_size">50dp</dimen> + <!-- Margin above the edit text in the call subject dialog. --> + <dimen name="call_subject_dialog_edit_spacing">60dp</dimen> + <!-- Size of primary text in the call subject dialog. --> + <dimen name="call_subject_dialog_primary_text_size">16sp</dimen> + <!-- Size of secondary text in the call subject dialog. --> + <dimen name="call_subject_dialog_secondary_text_size">14sp</dimen> + <!-- Row padding for call subject history items. --> + <dimen name="call_subject_history_item_padding">15dp</dimen> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/donottranslate_config.xml b/java/com/android/dialer/contacts/resources/res/values/donottranslate_config.xml new file mode 100644 index 000000000..f37e0b8d8 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/donottranslate_config.xml @@ -0,0 +1,41 @@ +<!-- + ~ Copyright (C) 2012 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 + --> + +<resources> + <!-- If true, an option is shown in Display Options UI to choose a sort order --> + <bool name="config_sort_order_user_changeable">true</bool> + + <!-- If true, the default sort order is primary (i.e. by given name) --> + <bool name="config_default_sort_order_primary">true</bool> + + <!-- If true, an option is shown in Display Options UI to choose a name display order --> + <bool name="config_display_order_user_changeable">true</bool> + + <!-- If true, the default sort order is primary (i.e. by given name) --> + <bool name="config_default_display_order_primary">true</bool> + + <!-- If true, the order of name fields in the editor is primary (i.e. given name first) --> + <bool name="config_editor_field_order_primary">true</bool> + + <!-- If true, an option is shown in Display Options UI to choose a default account --> + <bool name="config_default_account_user_changeable">true</bool> + + <!-- Contacts preferences key for contact editor default account --> + <string name="contact_editor_default_account_key">ContactEditorUtils_default_account</string> + + <!-- Contacts preferences key for contact editor anything saved --> + <string name="contact_editor_anything_saved_key">ContactEditorUtils_anything_saved</string> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/ids.xml b/java/com/android/dialer/contacts/resources/res/values/ids.xml new file mode 100644 index 000000000..65969c43f --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/ids.xml @@ -0,0 +1,31 @@ +<!-- + Copyright (C) 2012 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. + --> + +<resources> + <!-- For Debug Purpose --> + <item name="cliv_name_textview" type="id"/> + <item name="cliv_label_textview" type="id"/> + <item name="cliv_data_view" type="id"/> + + <!-- For tag ids used by ContactPhotoManager to tag views with contact details --> + <item name="tag_display_name" type="id"/> + <item name="tag_identifier" type="id"/> + <item name="tag_contact_type" type="id"/> + + <item name="contact_tile_image" type="id"/> + <item name="contact_tile_name" type="id"/> + <item name="call_to_action" type="id"/> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/integers.xml b/java/com/android/dialer/contacts/resources/res/values/integers.xml new file mode 100644 index 000000000..f4ed5c276 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/integers.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2012 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. + --> + +<resources> + + <!-- Determines the number of columns in a ContactTileRow in the favorites tab --> + <integer name="contact_tile_column_count_in_favorites">2</integer> + + <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> + <integer name="snippet_length_before_tokenize">30</integer> + + <!-- Layout weight of space elements in contact list view. + Default to 0 to indicate no padding--> + <integer name="contact_list_space_layout_weight">0</integer> + <!-- Layout weight of card in contact list view. + Default to 0 to indicate no padding --> + <integer name="contact_list_card_layout_weight">0</integer> + + <!-- Duration of the animations on the call subject dialog. --> + <integer name="call_subject_animation_duration">250</integer> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/strings.xml b/java/com/android/dialer/contacts/resources/res/values/strings.xml new file mode 100644 index 000000000..cf24a8867 --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/strings.xml @@ -0,0 +1,430 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2012 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 + --> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- Action string for calling a custom phone number --> + <string name="call_custom">Call + <xliff:g id="custom">%s</xliff:g> + </string> + <!-- Action string for calling a home phone number --> + <string name="call_home">Call home</string> + <!-- Action string for calling a mobile phone number --> + <string name="call_mobile">Call mobile</string> + <!-- Action string for calling a work phone number --> + <string name="call_work">Call work</string> + <!-- Action string for calling a work fax phone number --> + <string name="call_fax_work">Call work fax</string> + <!-- Action string for calling a home fax phone number --> + <string name="call_fax_home">Call home fax</string> + <!-- Action string for calling a pager phone number --> + <string name="call_pager">Call pager</string> + <!-- Action string for calling an other phone number --> + <string name="call_other">Call</string> + <!-- Action string for calling a callback number --> + <string name="call_callback">Call callback</string> + <!-- Action string for calling a car phone number --> + <string name="call_car">Call car</string> + <!-- Action string for calling a company main phone number --> + <string name="call_company_main">Call company main</string> + <!-- Action string for calling a ISDN phone number --> + <string name="call_isdn">Call ISDN</string> + <!-- Action string for calling a main phone number --> + <string name="call_main">Call main</string> + <!-- Action string for calling an other fax phone number --> + <string name="call_other_fax">Call fax</string> + <!-- Action string for calling a radio phone number --> + <string name="call_radio">Call radio</string> + <!-- Action string for calling a Telex phone number --> + <string name="call_telex">Call telex</string> + <!-- Action string for calling a TTY/TDD phone number --> + <string name="call_tty_tdd">Call TTY/TDD</string> + <!-- Action string for calling a work mobile phone number --> + <string name="call_work_mobile">Call work mobile</string> + <!-- Action string for calling a work pager phone number --> + <string name="call_work_pager">Call work pager</string> + <!-- Action string for calling an assistant phone number --> + <string name="call_assistant">Call + <xliff:g id="assistant">%s</xliff:g> + </string> + <!-- Action string for calling a MMS phone number --> + <string name="call_mms">Call MMS</string> + + <!-- Action string for sending an SMS to a custom phone number --> + <string name="sms_custom">Text + <xliff:g id="custom">%s</xliff:g> + </string> + <!-- Action string for sending an SMS to a home phone number --> + <string name="sms_home">Text home</string> + <!-- Action string for sending an SMS to a mobile phone number --> + <string name="sms_mobile">Text mobile</string> + <!-- Action string for sending an SMS to a work phone number --> + <string name="sms_work">Text work</string> + <!-- Action string for sending an SMS to a work fax phone number --> + <string name="sms_fax_work">Text work fax</string> + <!-- Action string for sending an SMS to a home fax phone number --> + <string name="sms_fax_home">Text home fax</string> + <!-- Action string for sending an SMS to a pager phone number --> + <string name="sms_pager">Text pager</string> + <!-- Action string for sending an SMS to an other phone number --> + <string name="sms_other">Text</string> + <!-- Action string for sending an SMS to a callback number --> + <string name="sms_callback">Text callback</string> + <!-- Action string for sending an SMS to a car phone number --> + <string name="sms_car">Text car</string> + <!-- Action string for sending an SMS to a company main phone number --> + <string name="sms_company_main">Text company main</string> + <!-- Action string for sending an SMS to a ISDN phone number --> + <string name="sms_isdn">Text ISDN</string> + <!-- Action string for sending an SMS to a main phone number --> + <string name="sms_main">Text main</string> + <!-- Action string for sending an SMS to an other fax phone number --> + <string name="sms_other_fax">Text fax</string> + <!-- Action string for sending an SMS to a radio phone number --> + <string name="sms_radio">Text radio</string> + <!-- Action string for sending an SMS to a Telex phone number --> + <string name="sms_telex">Text telex</string> + <!-- Action string for sending an SMS to a TTY/TDD phone number --> + <string name="sms_tty_tdd">Text TTY/TDD</string> + <!-- Action string for sending an SMS to a work mobile phone number --> + <string name="sms_work_mobile">Text work mobile</string> + <!-- Action string for sending an SMS to a work pager phone number --> + <string name="sms_work_pager">Text work pager</string> + <!-- Action string for sending an SMS to an assistant phone number --> + <string name="sms_assistant">Text + <xliff:g id="assistant">%s</xliff:g> + </string> + <!-- Action string for sending an SMS to a MMS phone number --> + <string name="sms_mms">Text MMS</string> + + <!-- Title of the confirmation dialog for clearing frequents. [CHAR LIMIT=37] --> + <string name="clearFrequentsConfirmation_title">Clear frequently contacted?</string> + + <!-- Confirmation dialog for clearing frequents. [CHAR LIMIT=NONE] --> + <string name="clearFrequentsConfirmation">You\'ll clear the frequently contacted list in the + Contacts and Phone apps, and force email apps to learn your addressing preferences from + scratch. + </string> + + <!-- Title of the "Clearing frequently contacted" progress-dialog [CHAR LIMIT=35] --> + <string name="clearFrequentsProgress_title">Clearing frequently contacted\u2026</string> + + <!-- Used to display as default status when the contact is available for chat [CHAR LIMIT=19] --> + <string name="status_available">Available</string> + + <!-- Used to display as default status when the contact is away or idle for chat [CHAR LIMIT=19] --> + <string name="status_away">Away</string> + + <!-- Used to display as default status when the contact is busy or Do not disturb for chat [CHAR LIMIT=19] --> + <string name="status_busy">Busy</string> + + <!-- Directory partition name (also exists in contacts) --> + <string name="contactsList">Contacts</string> + + <!-- Directory partition name for p13n suggestions --> + <string name="contact_suggestions">Top Suggested</string> + + <!-- The name of the invisible local contact directory --> + <string name="local_invisible_directory">Other</string> + + <!-- The label in section header in the contact list for a contact directory [CHAR LIMIT=128] --> + <string name="directory_search_label">Directory</string> + + <!-- The label in section header in the contact list for a work contact directory [CHAR LIMIT=128] --> + <string name="directory_search_label_work">Work directory</string> + + <!-- The label in section header in the contact list for a local contacts [CHAR LIMIT=128] --> + <string name="local_search_label">All contacts</string> + + <!-- The label in section header in the contact list for a local suggested contacts [CHAR LIMIT=128] --> + <string name="local_suggestions_search_label">Suggestions</string> + + <!-- String describing the text on the header of the profile contact in the contacts list + This may be programatically capitalized. [CHAR LIMIT=20] --> + <string msgid="9154761216179882405" name="user_profile_contacts_list_header">Me</string> + + <!-- Shown as the display name for a person when the name is missing or unknown. [CHAR LIMIT=18]--> + <string name="missing_name">(No name)</string> + + <!-- String describing a contact picture that introduces users to the contact detail screen. + + Used by AccessibilityService to announce the purpose of the button. + + [CHAR LIMIT=NONE] + --> + <string msgid="2795575601596468581" name="description_view_contact_detail">View contact</string> + + <!-- Contact list filter selection indicating that the list shows all contacts with phone numbers [CHAR LIMIT=64] --> + <string name="list_filter_phones">All contacts with phone numbers</string> + + <!-- Contact list filter selection indicating that the list shows all work contacts with phone numbers [CHAR LIMIT=64] --> + <string name="list_filter_phones_work">Work profile contacts</string> + + <!-- Button to view the updates from the current group on the group detail page [CHAR LIMIT=25] --> + <string name="view_updates_from_group">View updates</string> + + <!-- Title for data source when creating or editing a contact that doesn't + belong to a specific account. This contact will only exist on the device + and will not be synced. --> + <string name="account_phone">Device-only, unsynced</string> + + <!-- Header that expands to list all name types when editing a structured name of a contact + [CHAR LIMIT=20] --> + <string name="nameLabelsGroup">Name</string> + + <!-- Header that expands to list all nickname types when editing a nickname of a contact + [CHAR LIMIT=20] --> + <string name="nicknameLabelsGroup">Nickname</string> + + <!-- Field title for the full name of a contact [CHAR LIMIT=64]--> + <string name="full_name">Name</string> + <!-- Field title for the given name of a contact --> + <string name="name_given">First name</string> + <!-- Field title for the family name of a contact --> + <string name="name_family">Last name</string> + <!-- Field title for the prefix name of a contact --> + <string name="name_prefix">Name prefix</string> + <!-- Field title for the middle name of a contact --> + <string name="name_middle">Middle name</string> + <!-- Field title for the suffix name of a contact --> + <string name="name_suffix">Name suffix</string> + + <!-- Field title for the phonetic name of a contact [CHAR LIMIT=64]--> + <string name="name_phonetic">Phonetic name</string> + + <!-- Field title for the phonetic given name of a contact --> + <string name="name_phonetic_given">Phonetic first name</string> + <!-- Field title for the phonetic middle name of a contact --> + <string name="name_phonetic_middle">Phonetic middle name</string> + <!-- Field title for the phonetic family name of a contact --> + <string name="name_phonetic_family">Phonetic last name</string> + + <!-- Header that expands to list all of the types of phone numbers when editing or creating a + phone number for a contact [CHAR LIMIT=20] --> + <string name="phoneLabelsGroup">Phone</string> + + <!-- Header that expands to list all of the types of email addresses when editing or creating + an email address for a contact [CHAR LIMIT=20] --> + <string name="emailLabelsGroup">Email</string> + + <!-- Header that expands to list all of the types of postal addresses when editing or creating + an postal address for a contact [CHAR LIMIT=20] --> + <string name="postalLabelsGroup">Address</string> + + <!-- Header that expands to list all of the types of IM account when editing or creating an IM + account for a contact [CHAR LIMIT=20] --> + <string name="imLabelsGroup">IM</string> + + <!-- Header that expands to list all organization types when editing an organization of a + contact [CHAR LIMIT=20] --> + <string name="organizationLabelsGroup">Organization</string> + + <!-- Header for the list of all relationships for a contact [CHAR LIMIT=20] --> + <string name="relationLabelsGroup">Relationship</string> + + <!-- Header that expands to list all event types when editing an event of a contact + [CHAR LIMIT=20] --> + <string name="eventLabelsGroup">Special date</string> + + <!-- Generic action string for text messaging a contact. Used by AccessibilityService to + announce the purpose of the view. [CHAR LIMIT=NONE] --> + <string name="sms">Text message</string> + + <!-- Field title for the full postal address of a contact [CHAR LIMIT=64]--> + <string name="postal_address">Address</string> + + <!-- Hint text for the organization name when editing --> + <string name="ghostData_company">Company</string> + + <!-- Hint text for the organization title when editing --> + <string name="ghostData_title">Title</string> + + <!-- The label describing the Notes field of a contact. This field allows free form text entry + about a contact --> + <string name="label_notes">Notes</string> + + <!-- The label describing the SIP address field of a contact. [CHAR LIMIT=20] --> + <string name="label_sip_address">SIP</string> + + <!-- Header that expands to list all website types when editing a website of a contact + [CHAR LIMIT=20] --> + <string name="websiteLabelsGroup">Website</string> + + <!-- Header for the list of all groups for a contact [CHAR LIMIT=20] --> + <string name="groupsLabel">Groups</string> + + <!-- Action string for sending an email to a home email address --> + <string name="email_home">Email home</string> + <!-- Action string for sending an email to a mobile email address --> + <string name="email_mobile">Email mobile</string> + <!-- Action string for sending an email to a work email address --> + <string name="email_work">Email work</string> + <!-- Action string for sending an email to an other email address --> + <string name="email_other">Email</string> + <!-- Action string for sending an email to a custom email address --> + <string name="email_custom">Email <xliff:g id="custom">%s</xliff:g></string> + + <!-- Generic action string for sending an email --> + <string name="email">Email</string> + + <!-- Field title for the street of a structured postal address of a contact --> + <string name="postal_street">Street</string> + <!-- Field title for the city of a structured postal address of a contact --> + <string name="postal_city">City</string> + <!-- Field title for the region, or state, of a structured postal address of a contact --> + <string name="postal_region">State</string> + <!-- Field title for the postal code of a structured postal address of a contact --> + <string name="postal_postcode">ZIP code</string> + <!-- Field title for the country of a structured postal address of a contact --> + <string name="postal_country">Country</string> + + <!-- Action string for viewing a home postal address --> + <string name="map_home">View home address</string> + <!-- Action string for viewing a work postal address --> + <string name="map_work">View work address</string> + <!-- Action string for viewing an other postal address --> + <string name="map_other">View address</string> + <!-- Action string for viewing a custom postal address --> + <string name="map_custom">View <xliff:g id="custom">%s</xliff:g> address</string> + + <!-- Action string for starting an IM chat with the AIM protocol --> + <string name="chat_aim">Chat using AIM</string> + <!-- Action string for starting an IM chat with the MSN or Windows Live protocol --> + <string name="chat_msn">Chat using Windows Live</string> + <!-- Action string for starting an IM chat with the Yahoo protocol --> + <string name="chat_yahoo">Chat using Yahoo</string> + <!-- Action string for starting an IM chat with the Skype protocol --> + <string name="chat_skype">Chat using Skype</string> + <!-- Action string for starting an IM chat with the QQ protocol --> + <string name="chat_qq">Chat using QQ</string> + <!-- Action string for starting an IM chat with the Google Talk protocol --> + <string name="chat_gtalk">Chat using Google Talk</string> + <!-- Action string for starting an IM chat with the ICQ protocol --> + <string name="chat_icq">Chat using ICQ</string> + <!-- Action string for starting an IM chat with the Jabber protocol --> + <string name="chat_jabber">Chat using Jabber</string> + + <!-- Generic action string for starting an IM chat --> + <string name="chat">Chat</string> + + <!-- Contact list filter label indicating that the list is showing all available accounts [CHAR LIMIT=64] --> + <string name="list_filter_all_accounts">All contacts</string> + + <!-- Displayed at the top of the contacts showing the account filter selected [CHAR LIMIT=64] --> + <string name="listAllContactsInAccount">Contacts in <xliff:g example="abc@gmail.com" id="name">%s</xliff:g></string> + + <!-- Displayed at the top of the contacts showing single contact. [CHAR LIMIT=64] --> + <string name="listCustomView">Contacts in custom view</string> + + <!-- Displayed at the top of the contacts showing single contact. [CHAR LIMIT=64] --> + <string name="listSingleContact">Single contact</string> + + <!-- Contact preferences related strings --> + + <!-- Label of the "sort by" display option --> + <string name="display_options_sort_list_by">Sort by</string> + + <!-- An allowable value for the "sort list by" contact display option --> + <string name="display_options_sort_by_given_name">First name</string> + + <!-- An allowable value for the "sort list by" contact display option --> + <string name="display_options_sort_by_family_name">Last name</string> + + <!-- Label of the "name format" display option [CHAR LIMIT=64]--> + <string name="display_options_view_names_as">Name format</string> + + <!-- An allowable value for the "view names as" contact display option --> + <string name="display_options_view_given_name_first">First name first</string> + + <!-- An allowable value for the "view names as" contact display option --> + <string name="display_options_view_family_name_first">Last name first</string> + + <!-- The menu item to clear frequents [CHAR LIMIT=30] --> + <string name="menu_clear_frequents">Clear frequents</string> + + <!-- Content description for the fake action menu up button as used + inside search. [CHAR LIMIT=NONE] --> + <string name="action_menu_back_from_search">stop searching</string> + + <!-- String describing the icon used to clear the search field --> + <string name="description_clear_search">Clear search</string> + + <!-- The font-family to use for the text inside the searchbox. --> + <string name="search_font_family" translatable="false">sans-serif</string> + + <!-- Title for Select Account Dialog [CHAR LIMIT=30] --> + <string name="select_account_dialog_title">Account</string> + + <!-- Label for the check box to toggle default sim card setting [CHAR LIMIT=35]--> + <string name="set_default_account">Always use this for calls</string> + + <!-- Title for dialog to select Phone Account for outgoing call. [CHAR LIMIT=40] --> + <string name="select_phone_account_for_calls">Choose SIM for this call</string> + + <!-- Checkbox label when selecting a SIM when calling a contact, to use the selected SIM for the + same contact and never ask again [CHAR LIMIT=40]--> + <string name="select_phone_account_for_calls_remember">Remember this choice</string> + + <!-- String used for actions in the dialer call log and the quick contact card to initiate + a call to an individual. The user is prompted to enter a note which is sent along with + the call (e.g. a call subject). [CHAR LIMIT=40] --> + <string name="call_with_a_note">Call with a note</string> + + <!-- Hint text shown in the call subject dialog. [CHAR LIMIT=255] --> + <string name="call_subject_hint">Type a note to send with call ...</string> + + <!-- Button used to start a new call with the user entered subject. [CHAR LIMIT=32] --> + <string name="send_and_call_button">SEND & CALL</string> + + <!-- String used to represent the total number of characters entered for a call subject, + compared to the character limit. Example: 2 / 64 --> + <string name="call_subject_limit"><xliff:g example="4" id="count">%1$s</xliff:g> / <xliff:g example="64" id="limit">%2$s</xliff:g></string> + + <!-- String used to build a phone number type and phone number string. + Example: Mobile 650-555-1212 --> + <string name="old_call_subject_type_and_number"><xliff:g example="Mobile" id="type">%1$s</xliff:g> <xliff:g example="(650) 555-1212" id="number">%2$s</xliff:g></string> + + <!-- String format to describe a tab e.g.call history tab. --> + <string name="tab_title"><xliff:g id="title">%1$s</xliff:g> tab.</string> + + <!-- String format to describe the number of unread items in a tab. + + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + --> + <plurals name="tab_title_with_unread_items"> + <item quantity="one"> + <xliff:g id="title">%1$s</xliff:g> tab. <xliff:g id="count">%2$d</xliff:g> unread item. + </item> + <item quantity="other"> + <xliff:g id="title">%1$s</xliff:g> tab. <xliff:g id="count">%2$d</xliff:g> unread items. + </item> + </plurals> + + <!-- Description string for an action button to initiate a video call from search results. + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + + [CHAR LIMIT=NONE]--> + <string name="description_search_video_call">Video call</string> + + <!-- Description string for an action button to initiate an enriched call from search results. + Note: AccessibilityServices use this attribute to announce what the view represents. + This is especially valuable for views without textual representation like ImageView. + + [CHAR LIMIT=NONE]--> + <string name="description_search_call_and_share">Share and call</string> +</resources> diff --git a/java/com/android/dialer/contacts/resources/res/values/styles.xml b/java/com/android/dialer/contacts/resources/res/values/styles.xml new file mode 100644 index 000000000..4f0b3f15f --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/values/styles.xml @@ -0,0 +1,96 @@ +<!-- + ~ Copyright (C) 2012 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 + --> + +<resources> + + <style name="DirectoryHeader"> + <item name="android:background">@android:color/transparent</item> + </style> + + <style name="SectionHeaderStyle" parent="@android:style/TextAppearance.Large"> + <item name="android:textSize">16sp</item> + <item name="android:textAllCaps">true</item> + <item name="android:textColor">?android:attr/textColorPrimary</item> + <item name="android:textStyle">bold</item> + </style> + + <style name="DirectoryHeaderStyle" parent="@android:style/TextAppearance.Small"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">?android:attr/textColorSecondary</item> + <item name="android:fontFamily">sans-serif-medium</item> + </style> + + <!-- TextView style used for headers. + +This is similar to ?android:attr/listSeparatorTextView but uses different +background and text color. See also android:style/Widget.Holo.TextView.ListSeparator +(which is private, so we cannot specify it as a parent style). --> + <style name="ContactListSeparatorTextViewStyle"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">wrap_content</item> + <!-- See comments for @dimen/list_section_divider_min_height --> + <item name="android:minHeight">@dimen/list_section_divider_min_height</item> + <item name="android:textAppearance">@style/DirectoryHeaderStyle</item> + <item name="android:gravity">center_vertical</item> + <item name="android:paddingLeft">8dip</item> + <item name="android:paddingStart">8dip</item> + <item name="android:paddingTop">4dip</item> + <item name="android:paddingBottom">4dip</item> + <item name="android:ellipsize">end</item> + <item name="android:singleLine">true</item> + <item name="android:textAllCaps">true</item> + </style> + + <style name="TextAppearanceMedium" parent="@android:style/TextAppearance.Medium"> + <item name="android:textSize">16sp</item> + <item name="android:textColor">#000000</item> + </style> + + <style name="TextAppearanceSmall" parent="@android:style/TextAppearance.Small"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">#737373</item> + </style> + + <style name="ListViewStyle" parent="@android:style/Widget.Material.Light.ListView"> + <item name="android:overScrollMode">always</item> + </style> + + <style name="BackgroundOnlyTheme" parent="@android:style/Theme.Material.Light"> + <item name="android:windowBackground">@null</item> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowAnimationStyle">@null</item> + <item name="android:windowNoTitle">true</item> + <!-- Activities that use this theme are background activities without obvious displays. + However, some also have dialogs. Therefore, it doesn't make sense to set this true.--> + <item name="android:windowNoDisplay">false</item> + <item name="android:windowIsFloating">true</item> + </style> + + <style name="Theme.CallSubjectDialogTheme" parent="@android:style/Theme.Material.Light.Dialog"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + + <!-- No backgrounds, titles or window float --> + <item name="android:windowIsTranslucent">true</item> + <item name="android:windowNoTitle">true</item> + <item name="android:windowFullscreen">false</item> + <item name="android:windowIsFloating">true</item> + <item name="android:windowBackground">@android:color/transparent</item> + <item name="android:windowDrawsSystemBarBackgrounds">false</item> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowElevation">0dp</item> + </style> +</resources> |