diff options
Diffstat (limited to 'res/values')
| -rw-r--r-- | res/values/attrs.xml | 8 | ||||
| -rw-r--r-- | res/values/cm_arrays.xml | 17 | ||||
| -rw-r--r-- | res/values/cm_plurals.xml | 35 | ||||
| -rw-r--r-- | res/values/cm_strings.xml | 42 | ||||
| -rw-r--r-- | res/values/colors.xml | 3 | ||||
| -rw-r--r-- | res/values/styles.xml | 25 |
6 files changed, 129 insertions, 1 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 23f639fd2..90f8070a8 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -33,4 +33,12 @@ <declare-styleable name="SearchEditTextLayout" /> + <declare-styleable name="LinearColorBar"> + <attr name="redColor" format="color" /> + <attr name="greenColor" format="color" /> + <attr name="blueColor" format="color" /> + <attr name="orangeColor" format="color" /> + <attr name="backgroundColor" format="color" /> + </declare-styleable> + </resources> diff --git a/res/values/cm_arrays.xml b/res/values/cm_arrays.xml index 881a4e055..087ec89b7 100644 --- a/res/values/cm_arrays.xml +++ b/res/values/cm_arrays.xml @@ -15,6 +15,23 @@ limitations under the License. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- 0: sec + 1: min + 2: min sec + 3: hour + 4: hour sec + 5: hour min + 6: hour min sec --> + + <string-array name="call_stats_duration"> + <item><xliff:g id="seconds" example="2 secs">%3$s</xliff:g></item> + <item><xliff:g id="minutes" example="2 mins">%2$s</xliff:g></item> + <item><xliff:g id="minutes" example="2 mins">%2$s</xliff:g> <xliff:g id="seconds" example="2 secs">%3$s</xliff:g></item> + <item><xliff:g id="hours" example="2 hrs">%1$s</xliff:g></item> + <item><xliff:g id="hours" example="2 hrs">%1$s</xliff:g> <xliff:g id="seconds" example="2 secs">%3$s</xliff:g></item> + <item><xliff:g id="hours" example="2 hrs">%1$s</xliff:g> <xliff:g id="minutes" example="2 mins">%2$s</xliff:g></item> + <item><xliff:g id="hours" example="2 hrs">%1$s</xliff:g> <xliff:g id="minutes" example="2 mins">%2$s</xliff:g> <xliff:g id="seconds" example="2 secs">%3$s</xliff:g></item> + </string-array> <string-array name="forward_lookup_providers" translatable="false"> <item>Google</item> diff --git a/res/values/cm_plurals.xml b/res/values/cm_plurals.xml new file mode 100644 index 000000000..0c4b4d21a --- /dev/null +++ b/res/values/cm_plurals.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <plurals name="hour"> + <item quantity="one">1 hr</item> + <item quantity="other">%d hrs</item> + </plurals> + <plurals name="minute"> + <item quantity="one">1 min</item> + <item quantity="other">%d mins</item> + </plurals> + <plurals name="second"> + <item quantity="one">1 sec</item> + <item quantity="other">%d secs</item> + </plurals> + + <plurals name="call"> + <item quantity="one">1 call</item> + <item quantity="other">%d calls</item> + </plurals> +</resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index a6e5f5c5c..8cbcf50ca 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -68,4 +68,46 @@ <string name="incall_vibrate_hangup_title">Vibrate on hang up</string> <string name="incall_vibrate_45_title">Vibrate every minute</string> <string name="incall_vibrate_45_summary">Vibrates at the 45 second mark of every minute during outgoing calls</string> + + <string name="call_log_show_all_slots">All SIMs</string> + <string name="call_log_all_calls_header">All calls</string> + <string name="call_log_blacklist_header">Blocked calls only</string> + + <!-- Call statistics --> + <string name="call_log_stats_title">Statistics</string> + <string name="callStatsDetailTitle">Call stat details</string> + + <string name="call_stats_incoming">Incoming: <xliff:g id="value">%s</xliff:g></string> + <string name="call_stats_outgoing">Outgoing: <xliff:g id="value">%s</xliff:g></string> + <string name="call_stats_missed">Missed: <xliff:g id="value">%s</xliff:g></string> + <string name="call_stats_blacklisted">Blocked: <xliff:g id="value">%s</xliff:g></string> + <string name="call_stats_percent"><xliff:g id="percent">%d</xliff:g>%%</string> + <string name="call_stats_header_total">Total: <xliff:g id="call_count">%s</xliff:g>, <xliff:g id="duration">%s</xliff:g></string> + <string name="call_stats_header_total_callsonly">Total: <xliff:g id="call_count">%s</xliff:g></string> + <string name="call_stats_filter_from">Start date</string> + <string name="call_stats_filter_to">End date</string> + <string name="call_stats_filter_picker_title">Filter range</string> + + <string name="date_quick_selection">Quick selection</string> + <string name="date_qs_currentmonth">Current month</string> + <string name="date_qs_currentquarter">Current quarter</string> + <string name="date_qs_currentyear">Current year</string> + <string name="date_qs_lastweek">Last week</string> + <string name="date_qs_lastmonth">Last month</string> + <string name="date_qs_lastquarter">Last quarter</string> + <string name="date_qs_lastyear">Last year</string> + + <string name="call_stats_date_filter">Adjust time range</string> + <string name="call_stats_reset_filter">Reset time range</string> + <string name="call_stats_sort_by_duration">Sort by call duration</string> + <string name="call_stats_sort_by_count">Sort by call count</string> + + <string name="call_stats_title_for_number">This number</string> + <string name="call_stats_title_of_total">Of total</string> + <string name="call_stats_title_durations">Call durations</string> + <string name="call_stats_title_count">Call count</string> + <string name="call_stats_title_average_duration">Average call duration</string> + + <!-- Text displayed when there are no call log entries in the selected time range. --> + <string name="recent_calls_no_items_in_range">Your call log does not contain any calls in the selected time range.</string> </resources> diff --git a/res/values/colors.xml b/res/values/colors.xml index 5a481b639..451210404 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -111,4 +111,7 @@ <!-- Color for call log blacklist item --> <color name="call_log_action_block_red">#F44336</color> <color name="call_log_action_block_gray">#616161</color> + + <!-- Colors for incoming and outgoing calls in the call statistics --> + <color name="call_stats_bar_background">#88888888</color> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index e3a2f9974..816e1ab33 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -30,6 +30,7 @@ <item name="android:listViewStyle">@style/ListViewStyle</item> <item name="android:overlapAnchor">true</item> <item name="android:alertDialogTheme">@style/AlertDialogTheme</item> + <item name="android:colorAccent">@color/dialtacts_theme_color</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> @@ -199,7 +200,6 @@ <!-- Setting description. --> <item name="android:textColorSecondary">@color/settings_text_color_secondary</item> <item name="android:windowBackground">@color/setting_background_color</item> - <item name="android:colorAccent">@color/dialtacts_theme_color</item> <item name="android:textColorLink">@color/dialtacts_theme_color</item> </style> @@ -218,6 +218,16 @@ <item name="cardBackgroundColor">@color/background_dialer_call_log_list_item</item> </style> + <style name="CallLogSpinnerStyle"> + <item name="android:textAppearance">?android:attr/textAppearanceSmall</item> + <item name="android:textStyle">bold</item> + <item name="android:textColor">@android:color/black</item> + <item name="android:gravity">center_vertical</item> + <item name="android:ellipsize">marquee</item> + <item name="android:singleLine">true</item> + <item name="android:textAllCaps">true</item> + </style> + <style name="TextActionStyle"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">@dimen/call_log_action_height</item> @@ -246,4 +256,17 @@ <item name="android:background">@drawable/oval_ripple</item> <item name="android:padding">8dp</item> </style> + + <style name="CallStatsBarStyle"> + <item name="android:layout_height">4dp</item> + <item name="android:layout_marginTop">6dp</item> + <item name="android:layout_marginBottom">6dp</item> + <item name="android:orientation">horizontal</item> + <item name="backgroundColor">@color/call_stats_bar_background</item> + <item name="blueColor">@color/answered_incoming_call</item> + <item name="greenColor">@color/answered_outgoing_call</item> + <item name="redColor">@color/missed_call</item> + <item name="orangeColor">@color/blacklisted_call</item> + </style> + </resources> |
