diff options
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/attrs.xml | 17 | ||||
-rw-r--r-- | res/values/cm_arrays.xml | 42 | ||||
-rw-r--r-- | res/values/cm_plurals.xml | 35 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 37 | ||||
-rw-r--r-- | res/values/colors.xml | 8 | ||||
-rw-r--r-- | res/values/dimens.xml | 5 |
6 files changed, 144 insertions, 0 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 23f639fd2..5ea16f98b 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -33,4 +33,21 @@ <declare-styleable name="SearchEditTextLayout" /> + <declare-styleable name="AnchoredScrollView"> + <attr name="anchorView" format="reference" /> + <attr name="anchorAtBottom" format="boolean" /> + <attr name="anchoredView" format="reference" /> + </declare-styleable> + + <declare-styleable name="LinearColorBar"> + <attr name="redColor" format="color" /> + <attr name="greenColor" format="color" /> + <attr name="blueColor" format="color" /> + <attr name="backgroundColor" format="color" /> + </declare-styleable> + + <declare-styleable name="PieChartView"> + <attr name="outlineColor" format="color" /> + </declare-styleable> + </resources> diff --git a/res/values/cm_arrays.xml b/res/values/cm_arrays.xml new file mode 100644 index 000000000..4a58561dd --- /dev/null +++ b/res/values/cm_arrays.xml @@ -0,0 +1,42 @@ +<?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"> + <string-array name="call_stats_nav_items" translatable="false"> + <item>@string/call_stats_nav_all</item> + <item>@string/call_stats_nav_incoming</item> + <item>@string/call_stats_nav_outgoing</item> + <item>@string/call_stats_nav_missed</item> + </string-array> + + <!-- 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> +</resources> 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 6c0a5596a..ef1068ef6 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -18,4 +18,41 @@ <!-- Forward lookup --> <string name="nearby_places">Nearby places</string> <string name="people">People</string> + <string name="call_log_stats_title">Statistics</string> + <string name="callStatsDetailTitle">Call stat details</string> + + <string name="call_stats">Call statistics</string> + <string name="call_stats_refresh">Refresh</string> + <string name="activity_title_call_stats">Call statistics</string> + + <string name="call_stats_nav_all">All</string> + <string name="call_stats_nav_incoming">Incoming</string> + <string name="call_stats_nav_outgoing">Outgoing</string> + <string name="call_stats_nav_missed">Missed</string> + <string name="call_stats_incoming">Incoming: <xliff:g id="percent">%d</xliff:g>%%</string> + <string name="call_stats_outgoing">Outgoing: <xliff:g id="percent">%d</xliff:g>%%</string> + <string name="call_stats_missed">Missed</string> + <string name="call_stats_missed_percent">Missed: <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="menu_add_to_blacklist">Add to blacklist</string> + <string name="toast_added_to_blacklist">%s added to blacklist.</string> </resources> diff --git a/res/values/colors.xml b/res/values/colors.xml index 863bfe9d4..83b2b8f85 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -101,4 +101,12 @@ <color name="floating_action_button_touch_tint">#80ffffff</color> + <!-- Text color for no favorites message --> + <color name="nofavorite_text_color">#777777</color> + + <!-- Colors for incoming and outgoing calls in the call statistics --> + <color name="call_stats_incoming">#33b5e5</color> + <color name="call_stats_outgoing">#99cc00</color> + <color name="call_stats_missed">#eb1313</color> + <color name="call_stats_bar_background">#88888888</color> </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 383a8faa6..3d50ed728 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -31,6 +31,8 @@ <dimen name="call_log_indent_margin">24dip</dimen> <dimen name="call_log_name_margin_bottom">2dp</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> <!-- Size of contact photos in the call log and call details. --> <dimen name="contact_photo_size">40dp</dimen> @@ -141,4 +143,7 @@ <dimen name="preference_padding_bottom">16dp</dimen> <dimen name="preference_side_margin">16dp</dimen> <dimen name="preference_summary_line_spacing_extra">4dp</dimen> + + <!-- Size of the pie chart in the call stats detail activity --> + <dimen name="call_stats_details_chart_size">140dip</dimen> </resources> |