diff options
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/attrs.xml | 34 | ||||
-rw-r--r-- | res/values/dimens.xml | 53 | ||||
-rw-r--r-- | res/values/donottranslate_config.xml | 37 | ||||
-rw-r--r-- | res/values/strings.xml | 170 | ||||
-rw-r--r-- | res/values/styles.xml | 113 |
5 files changed, 405 insertions, 2 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml new file mode 100644 index 000000000..f734aae89 --- /dev/null +++ b/res/values/attrs.xml @@ -0,0 +1,34 @@ +<?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> + + <declare-styleable name="CallLog"> + <attr name="call_log_primary_text_color" format="color" /> + <attr name="call_log_primary_background_color" format="color" /> + <attr name="call_log_secondary_text_color" format="color" /> + <attr name="call_log_secondary_background_color" format="color" /> + <attr name="call_log_header_color" format="color" /> + </declare-styleable> + + <declare-styleable name="VoicemailStatus"> + <attr name="call_log_voicemail_status_height" format="dimension" /> + <attr name="call_log_voicemail_status_background_color" format="color" /> + <attr name="call_log_voicemail_status_text_color" format="color" /> + <attr name="call_log_voicemail_status_action_text_color" format="color" /> + </declare-styleable> + +</resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 000000000..2c8d59662 --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,53 @@ +<?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> + + <!-- Height of edit text in dialpad fragment --> + <dimen name="dialpad_horizontal_margin">0dip</dimen> + <dimen name="dialpad_vertical_margin">2dip</dimen> + <dimen name="dialpad_digits_text_size">35sp</dimen> + + <!-- Just used in landscape mode --> + <dimen name="dialpad_digits_height">0px</dimen> + <dimen name="dialpad_digits_margin_bottom">0px</dimen> + <dimen name="dialpad_center_margin">3dp</dimen> + <dimen name="dialpad_button_margin">2dp</dimen> + <!-- Match call_button_height to Phone's dimens/in_call_end_button_height --> + <dimen name="call_button_height">74dp</dimen> + + <!-- Call Log --> + <dimen name="call_log_call_action_size">32dip</dimen> + <dimen name="call_log_call_action_width">48dip</dimen> + <dimen name="call_log_icon_margin">4dip</dimen> + <dimen name="call_log_inner_margin">8dip</dimen> + <dimen name="call_log_outer_margin">16dip</dimen> + <dimen name="call_log_indent_margin">24dip</dimen> + <dimen name="call_log_list_item_height">56dip</dimen> + <dimen name="call_log_list_contact_photo_size">64dip</dimen> + <dimen name="call_detail_contact_name_margin">24dip</dimen> + <dimen name="call_detail_button_spacing">2dip</dimen> + + <!-- Layout weight values for dialpad screen. These layouts will be used in one + LinearLayout (dialpad_fragment.xml), configuring dialpad screen's vertical + ratio. --> + <integer name="dialpad_layout_weight_digits">20</integer> + <integer name="dialpad_layout_weight_dialpad">65</integer> + <integer name="dialpad_layout_weight_additional_buttons">15</integer> + + <!-- Min with of fake menu buttons, which should be same as ActionBar's one --> + <dimen name="fake_menu_button_min_width">56dip</dimen> +</resources> diff --git a/res/values/donottranslate_config.xml b/res/values/donottranslate_config.xml new file mode 100644 index 000000000..468e41586 --- /dev/null +++ b/res/values/donottranslate_config.xml @@ -0,0 +1,37 @@ +<?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> + + <!-- If true, enable vibration (haptic feedback) for dialer key presses. + The pattern is set on a per-platform basis using config_virtualKeyVibePattern. + TODO: If enough users are annoyed by this, we might eventually + need to make it a user preference rather than a per-platform + resource. --> + <bool name="config_enable_dialer_key_vibration">true</bool> + + <!-- If true, show an onscreen "Dial" button in the dialer. + In practice this is used on all platforms even the ones with hard SEND/END + keys, but for maximum flexibility it's controlled by a flag here + (which can be overridden on a per-product basis.) --> + <bool name="config_show_onscreen_dial_button">true</bool> + + <!-- Regular expression for prohibiting certain phone numbers in dialpad. + Ignored if empty. --> + <string name="config_prohibited_phone_number_regexp"></string> + +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 2daa236ed..0b3870847 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -16,12 +16,178 @@ --> -<resources> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Directory partition name --> <string name="applicationLabel">Dialer</string> <!-- Title for the activity that dials the phone. This is the name - used in the Launcher icon. --> + used in the Launcher icon. --> <string name="launcherDialer">Phone</string> + <!-- The description text for the dialer tab. + + 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="dialerIconLabel">Phone</string> + + <!-- The description text for the call log tab. + + 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="recentCallsIconLabel">Call log</string> + + <!-- Menu item used to send an SMS or MMS message to a phone number --> + <string name="menu_sendTextMessage">Send text message</string> + + <!-- Menu item used to call a contact from the call log --> + <string name="recentCalls_callNumber">Call + <xliff:g id="name">%s</xliff:g> + </string> + + <!-- Menu item used to copy a number from the call log to the dialer so it can be edited before calling it --> + <string name="recentCalls_editNumberBeforeCall">Edit number before call</string> + + <!-- Menu item used to add a number from the call log to contacts --> + <string name="recentCalls_addToContact">Add to contacts</string> + + <!-- Menu item used to remove a single call from the call log --> + <string name="recentCalls_removeFromRecentList">Remove from call log</string> + + <!-- Menu item used to remove all calls from the call log --> + <string name="recentCalls_deleteAll">Clear call log</string> + + <!-- Menu item used to delete a voicemail. [CHAR LIMIT=30] --> + <string name="recentCalls_trashVoicemail">Delete voicemail</string> + + <!-- Menu item used to share a voicemail. [CHAR LIMIT=30] --> + <string name="recentCalls_shareVoicemail">Share voicemail</string> + + <!-- Text displayed when the call log is empty --> + <string name="recentCalls_empty">Call log is empty.</string> + + <!-- Title of the confirmation dialog for clearing the call log. [CHAR LIMIT=37] --> + <string name="clearCallLogConfirmation_title">Clear call log?</string> + + <!-- Confirmation dialog for clearing the call log. [CHAR LIMIT=NONE] --> + <string name="clearCallLogConfirmation">All your call records will be deleted.</string> + + <!-- Title of the "Clearing call log" progress-dialog [CHAR LIMIT=35] --> + <string name="clearCallLogProgress_title">Clearing call log\u2026</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 + People 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> + + <!-- Title of the notification of new voicemails. [CHAR LIMIT=30] --> + <plurals name="notification_voicemail_title"> + <item quantity="one">Voicemail</item> + <item quantity="other"> + <xliff:g id="count">%1$d</xliff:g> + Voicemails + </item> + </plurals> + + <!-- Used in the notification of a new voicemail for the action to play the voicemail. --> + <string name="notification_action_voicemail_play">Play</string> + + <!-- Used to build a list of names or phone numbers, to indicate the callers who left + voicemails. + The first argument may be one or more callers, the most recent ones. + The second argument is an additional callers. + This string is used to build a list of callers. + + [CHAR LIMIT=10] + --> + <string name="notification_voicemail_callers_list"><xliff:g id="newer_callers">%1$s</xliff:g>, + <xliff:g id="older_caller">%2$s</xliff:g> + </string> + + <!-- Text used in the ticker to notify the user of the latest voicemail. [CHAR LIMIT=30] --> + <string name="notification_new_voicemail_ticker">New voicemail from + <xliff:g id="caller">%1$s</xliff:g> + </string> + + <!-- Message to show when there is an error playing back the voicemail. [CHAR LIMIT=40] --> + <string name="voicemail_playback_error">Couldn\'t play voicemail.</string> + + <!-- Message to display before we have prepared the media player, i.e. before we know duration. [CHAR LIMIT=40] --> + <string name="voicemail_buffering">Buffering\u2026</string> + + <!-- Message to display whilst we are waiting for the content to be fetched. [CHAR LIMIT=40] --> + <string name="voicemail_fetching_content">Fetching voicemail\u2026</string> + + <!-- Message to display if we fail to get content within a suitable time period. [CHAR LIMIT=40] --> + <string name="voicemail_fetching_timout">Couldn\'t fetch voicemail.</string> + + <!-- The header in the call log used to identify missed calls and voicemail that have not yet been consumed [CHAR LIMIT=10] --> + <string name="call_log_new_header">New</string> + + <!-- The header in the call log used to identify items that have been already consumed [CHAR LIMIT=10] --> + <string name="call_log_old_header">Older</string> + + <!-- The header to show that call log is only showing voicemail calls. [CHAR LIMIT=40] --> + <string name="call_log_voicemail_header">Calls with voicemail</string> + + <!-- The header to show that call log is only showing incoming calls. [CHAR LIMIT=40] --> + <string name="call_log_incoming_header">Incoming calls</string> + + <!-- The header to show that call log is only showing outgoing calls. [CHAR LIMIT=40] --> + <string name="call_log_outgoing_header">Outgoing calls</string> + + <!-- The header to show that call log is only showing missed calls. [CHAR LIMIT=40] --> + <string name="call_log_missed_header">Missed calls</string> + + <!-- Voicemail status message shown at the top of call log to notify the user that no new + voicemails are currently available. This can happen when both notification as well as data + connection to the voicemail server is lost. [CHAR LIMIT=64] --> + <string name="voicemail_status_voicemail_not_available">Can\'t connect to voicemail server. + </string> + <!-- Voicemail status message shown at the top of call log to notify the user that there is no + data connection to the voicemail server, but there are new voicemails waiting on the server. + [CHAR LIMIT=64] --> + <string name="voicemail_status_messages_waiting">Can\'t connect to voicemail server. New + voicemails are waiting. + </string> + <!-- Voicemail status message shown at the top of call log to invite the user to configure + visual voicemail. [CHAR LIMIT=64] --> + <string name="voicemail_status_configure_voicemail">Set up your voicemail.</string> + <!-- Voicemail status message shown at the top of call details screen to notify the user that + the audio of this voicemail is not available. [CHAR LIMIT=64] --> + <string name="voicemail_status_audio_not_available">Audio not available.</string> + + <!-- User action prompt shown next to a voicemail status message to let the user configure + visual voicemail. [CHAR LIMIT=20] --> + <string name="voicemail_status_action_configure">Set up</string> + <!-- User action prompt shown next to a voicemail status message to let the user call voicemail + server directly to listen to the voicemails. [CHAR LIMIT=20] --> + <string name="voicemail_status_action_call_server">Call voicemail</string> + + <!-- The slowest voicemail playback speed. [CHAR LIMIT=30] --> + <string name="voicemail_speed_slowest">Slowest speed</string> + <!-- Slower than normal voicemail playback speed. [CHAR LIMIT=30] --> + <string name="voicemail_speed_slower">Slow speed</string> + <!-- Normal voicemail playback speed. [CHAR LIMIT=30] --> + <string name="voicemail_speed_normal">Normal speed</string> + <!-- Faster than normal pvoicemail playback speed. [CHAR LIMIT=30] --> + <string name="voicemail_speed_faster">Fast speed</string> + <!-- Fastest voicemail playback speed. [CHAR LIMIT=30] --> + <string name="voicemail_speed_fastest">Fastest speed</string> + + <!-- The counter for calls in a group and the date of the latest call as shown in the call log [CHAR LIMIT=15] --> + <string name="call_log_item_count_and_date">(<xliff:g id="count">%1$d</xliff:g>) + <xliff:g id="date">%2$s</xliff:g> + </string> + </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 000000000..93a8176d9 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,113 @@ +<?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> + <style name="DialtactsTheme" + parent="android:Theme.Holo"> + <item name="android:textColorSecondary">@color/dialtacts_secondary_text_color</item> + <item name="android:windowActionBarOverlay">true</item> + <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowBackground">@drawable/background_dial_holo_dark</item> + <item name="android:listViewStyle">@style/ListViewStyle</item> + <item name="activated_background">@drawable/list_item_activated_background</item> + <item name="section_header_background">@drawable/list_title_holo</item> + <item name="list_section_header_height">32dip</item> + <item name="list_item_divider">?android:attr/listDivider</item> + <item name="list_item_padding_top">0dip</item> + <item name="list_item_padding_right">0dip</item> + <item name="list_item_padding_bottom">0dip</item> + <item name="list_item_padding_left">0dip</item> + <item name="list_item_gap_between_image_and_text">8dip</item> + <item name="list_item_gap_between_label_and_data">5dip</item> + <item name="list_item_presence_icon_margin">4dip</item> + <item name="list_item_presence_icon_size">16dip</item> + <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item> + <item name="list_item_profile_photo_size">70dip</item> + <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item> + <item name="list_item_header_text_indent">8dip</item> + <item name="list_item_header_text_color">@color/people_app_theme_color</item> + <item name="list_item_header_text_size">14sp</item> + <item name="list_item_header_height">24dip</item> + <item name="list_item_header_underline_height">1dip</item> + <item name="list_item_header_underline_color">@color/people_app_theme_color</item> + <item name="list_item_data_width_weight">5</item> + <item name="list_item_label_width_weight">3</item> + <item name="contact_browser_list_padding_left">16dip</item> + <item name="contact_browser_list_padding_right">0dip</item> + <item name="contact_browser_background">@android:color/transparent</item> + <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item> + <!-- CallLog --> + <item name="call_log_primary_text_color">#FFFFFF</item> + <item name="call_log_primary_background_color">#000000</item> + <item name="call_log_secondary_text_color">#888888</item> + <item name="call_log_secondary_background_color">#333333</item> + <item name="call_log_header_color">#33b5e5</item> + <!-- VoicemailStatus --> + <item name="call_log_voicemail_status_height">48dip</item> + <item name="call_log_voicemail_status_background_color">#262626</item> + <item name="call_log_voicemail_status_text_color">#888888</item> + <item name="call_log_voicemail_status_action_text_color">#33b5e5</item> + <!-- Favorites --> + <item name="favorites_padding_bottom">?android:attr/actionBarSize</item> + </style> + + <style name="CallDetailActivityTheme" parent="android:Theme.Holo"> + <item name="android:windowBackground">@android:color/black</item> + <item name="android:gravity">top</item> + <item name="android:listViewStyle">@style/ListViewStyle</item> + <!-- CallLog --> + <item name="call_log_primary_text_color">#FFFFFF</item> + <item name="call_log_primary_background_color">#000000</item> + <item name="call_log_secondary_text_color">#FFFFFF</item> + <item name="call_log_secondary_background_color">#333333</item> + <item name="call_log_header_color">#33b5e5</item> + <!-- VoicemailStatus --> + <item name="call_log_voicemail_status_height">48dip</item> + <item name="call_log_voicemail_status_background_color">#262626</item> + <item name="call_log_voicemail_status_text_color">#888888</item> + <item name="call_log_voicemail_status_action_text_color">#33b5e5</item> + </style> + + <style name="Theme"> + </style> + + <style name="DialtactsDigitsTextAppearance"> + <item name="android:maxLines">1</item> + <item name="android:scrollHorizontally">true</item> + <item name="android:textSize">@dimen/dialpad_digits_text_size</item> + <item name="android:freezesText">true</item> + <item name="android:focusableInTouchMode">true</item> + <item name="android:editable">true</item> + <item name="android:cursorVisible">false</item> + <item name="android:layout_weight">0</item> + </style> + + <style name="DialtactsDialpadButtonStyle"> + <item name="android:layout_width">0dip</item> + <item name="android:layout_height">match_parent</item> + <item name="android:layout_weight">1</item> + <item name="android:background">?android:attr/selectableItemBackground</item> + <item name="android:soundEffectsEnabled">false</item> + </style> + + <style name="DialtactsActionBarStyle" parent="android:Widget.Holo.ActionBar"> + <item name="android:backgroundSplit">@null</item> + <item name="android:backgroundStacked">@drawable/ab_stacked_opaque_dark_holo</item> + <item name="android:displayOptions"></item> + </style> + +</resources> |