diff options
author | Eric Erfanian <erfanian@google.com> | 2017-02-22 16:32:36 -0800 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-03-01 09:56:52 -0800 |
commit | ccca31529c07970e89419fb85a9e8153a5396838 (patch) | |
tree | a7034c0a01672b97728c13282a2672771cd28baa /java/com/android/dialer/app/res/values/styles.xml | |
parent | e7ae4624ba6f25cb8e648db74e0d64c0113a16ba (diff) |
Update dialer sources.
Test: Built package and system image.
This change clobbers the old source, and is an export
from an internal Google repository.
The internal repository was forked form Android in March,
and this change includes modifications since then, to
near the v8 release.
Since the fork, we've moved code from monolithic to independent modules. In addition,
we've switched to Blaze/Bazel as the build sysetm. This export, however, still uses make.
New dependencies have been added:
- Dagger
- Auto-Value
- Glide
- Libshortcutbadger
Going forward, development will still be in Google3, and the Gerrit release
will become an automated export, with the next drop happening in ~ two weeks.
Android.mk includes local modifications from ToT.
Abridged changelog:
Bug fixes
● Not able to mute, add a call when using Phone app in multiwindow mode
● Double tap on keypad triggering multiple key and tones
● Reported spam numbers not showing as spam in the call log
● Crash when user tries to block number while Phone app is not set as default
● Crash when user picks a number from search auto-complete list
Visual Voicemail (VVM) improvements
● Share Voicemail audio via standard exporting mechanisms that support file attachment
(email, MMS, etc.)
● Make phone number, email and web sites in VVM transcript clickable
● Set PIN before declining VVM Terms of Service {Carrier}
● Set client type for outbound visual voicemail SMS {Carrier}
New incoming call and incall UI on older devices
(Android M)
● Updated Phone app icon
● New incall UI (large buttons, button labels)
● New and animated Answer/Reject gestures
Accessibility
● Add custom answer/decline call buttons on answer screen for touch exploration
accessibility services
● Increase size of touch target
● Add verbal feedback when a Voicemail fails to load
● Fix pressing of Phone buttons while in a phone call using Switch Access
● Fix selecting and opening contacts in talkback mode
● Split focus for ‘Learn More’ link in caller id & spam to help distinguish similar text
Other
● Backup & Restore for App Preferences
● Prompt user to enable Wi-Fi calling if the call ends due to out of service and Wi-Fi is
connected
● Rename “Dialpad” to “Keypad”
● Show "Private number" for restricted calls
● Delete unused items (vcard, add contact, call history) from Phone menu
Change-Id: I2a7e53532a24c21bf308bf0a6d178d7ddbca4958
Diffstat (limited to 'java/com/android/dialer/app/res/values/styles.xml')
-rw-r--r-- | java/com/android/dialer/app/res/values/styles.xml | 279 |
1 files changed, 279 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/res/values/styles.xml b/java/com/android/dialer/app/res/values/styles.xml new file mode 100644 index 000000000..ac4422ba2 --- /dev/null +++ b/java/com/android/dialer/app/res/values/styles.xml @@ -0,0 +1,279 @@ +<?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="DialerThemeBase"> + + <!-- Style for the overflow button in the actionbar. --> + <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item> + <item name="actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item> + + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:windowActionBarOverlay">true</item> + <item name="windowActionBarOverlay">true</item> + <item name="android:windowActionModeOverlay">true</item> + <item name="windowActionModeOverlay">true</item> + <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item> + <item name="actionBarStyle">@style/DialtactsActionBarStyle</item> + + <item name="android:windowContentOverlay">@null</item> + <item name="android:overlapAnchor">true</item> + <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</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_padding_top">7dp</item> + <item name="list_item_padding_right">24dp</item> + <item name="list_item_padding_bottom">7dp</item> + <item name="list_item_padding_left">16dp</item> + <item name="list_item_gap_between_image_and_text"> + @dimen/contact_browser_list_item_gap_between_image_and_text + </item> + <item name="list_item_gap_between_label_and_data">8dip</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_background_color">@color/background_dialer_light</item> + <item name="list_item_header_text_indent">8dip</item> + <item name="list_item_header_text_color">@color/dialer_secondary_text_color</item> + <item name="list_item_header_text_size">14sp</item> + <item name="list_item_header_height">30dip</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">0dp</item> + <item name="contact_browser_list_padding_right">0dp</item> + <item name="contact_browser_background">@color/background_dialer_results</item> + <item name="list_item_name_text_color">@color/contact_list_name_text_color</item> + <item name="list_item_name_text_size">16sp</item> + <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item> + <item name="list_item_text_offset_top">-2dp</item> + <!-- Favorites --> + <item name="favorites_padding_bottom">?android:attr/actionBarSize</item> + <item name="dialpad_key_button_touch_tint">@color/dialer_dialpad_touch_tint</item> + <item name="android:textAppearanceButton">@style/DialerButtonTextStyle</item> + + <!-- Video call icon --> + <item name="list_item_video_call_icon_size">32dip</item> + <item name="list_item_video_call_icon_margin">8dip</item> + + <item name="dialpad_style">@style/Dialpad.Light</item> + </style> + + <!-- Action bar overflow menu icon. --> + <style name="DialtactsActionBarOverflow" + parent="@android:style/Widget.Material.Light.ActionButton.Overflow"> + <item name="android:src">@drawable/ic_overflow_menu</item> + </style> + + <!-- Action bar overflow menu icon. White with no shadow. --> + <style name="DialtactsActionBarOverflowWhite" + parent="@android:style/Widget.Material.Light.ActionButton.Overflow"> + <item name="android:src">@drawable/overflow_menu</item> + </style> + + <style name="DialpadTheme" parent="DialtactsTheme"> + <item name="android:textColorPrimary">#FFFFFF</item> + </style> + + <style name="DialtactsThemeWithoutActionBarOverlay" parent="DialtactsTheme"> + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:windowActionBarOverlay">false</item> + <item name="windowActionBarOverlay">false</item> + <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item> + <item name="actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item> + </style> + + <!-- Hide the actionbar title during the activity preview --> + <style name="DialtactsActivityTheme" parent="DialtactsTheme"> + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:actionBarStyle">@style/DialtactsActionBarWithoutTitleStyle</item> + <item name="actionBarStyle">@style/DialtactsActionBarWithoutTitleStyle</item> + + <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item> + <item name="android:fastScrollTrackDrawable">@null</item> + </style> + + <style name="CallDetailActivityTheme" parent="DialtactsThemeWithoutActionBarOverlay"> + <item name="android:windowBackground">@color/background_dialer_results</item> + <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item> + </style> + + <style name="CallDetailActionItemStyle"> + <item name="android:foreground">?android:attr/selectableItemBackground</item> + <item name="android:clickable">true</item> + <item name="android:drawablePadding">@dimen/call_detail_action_item_drawable_padding</item> + <item name="android:gravity">center_vertical</item> + <item name="android:paddingStart">@dimen/call_detail_action_item_padding_horizontal</item> + <item name="android:paddingEnd">@dimen/call_detail_action_item_padding_horizontal</item> + <item name="android:paddingTop">@dimen/call_detail_action_item_padding_vertical</item> + <item name="android:paddingBottom">@dimen/call_detail_action_item_padding_vertical</item> + <item name="android:textColor">@color/call_detail_footer_text_color</item> + <item name="android:textSize">@dimen/call_detail_action_item_text_size</item> + </style> + + <style name="DialtactsActionBarStyle" parent="DialerActionBarBaseStyle"> + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:background">@color/actionbar_background_color</item> + <item name="background">@color/actionbar_background_color</item> + <item name="android:titleTextStyle">@style/DialtactsActionBarTitleText</item> + <item name="titleTextStyle">@style/DialtactsActionBarTitleText</item> + <item name="android:elevation">@dimen/action_bar_elevation</item> + <item name="elevation">@dimen/action_bar_elevation</item> + <!-- Empty icon --> + <item name="android:icon">@android:color/transparent</item> + <item name="icon">@android:color/transparent</item> + <!-- Shift the title text to the right --> + <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item> + <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item> + </style> + + <style name="DialtactsActionBarWithoutTitleStyle" parent="DialtactsActionBarStyle"> + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:displayOptions"></item> + <item name="displayOptions"></item> + <item name="android:height">@dimen/action_bar_height_large</item> + <item name="height">@dimen/action_bar_height_large</item> + <!-- Override ActionBar title offset to keep search box aligned left --> + <item name="android:contentInsetStart">0dp</item> + <item name="contentInsetStart">0dp</item> + <item name="android:contentInsetEnd">0dp</item> + <item name="contentInsetEnd">0dp</item> + </style> + + <!-- Text in the action bar at the top of the screen --> + <style name="DialtactsActionBarTitleText" + parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title"> + <item name="android:textColor">@color/actionbar_text_color</item> + </style> + + <!-- Text style for tabs. --> + <style name="DialtactsActionBarTabTextStyle" + parent="android:style/Widget.Material.Light.ActionBar.TabText"> + <item name="android:textColor">@color/tab_text_color</item> + <item name="android:textSize">@dimen/tab_text_size</item> + <item name="android:fontFamily">"sans-serif-medium"</item> + </style> + + <style name="CallLogActionStyle"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">@dimen/call_log_action_height</item> + <item name="android:background">?android:attr/selectableItemBackground</item> + <item name="android:orientation">horizontal</item> + <item name="android:gravity">center_vertical</item> + </style> + + <style name="CallLogActionTextStyle"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:paddingStart">@dimen/call_log_action_horizontal_padding</item> + <item name="android:paddingEnd">@dimen/call_log_action_horizontal_padding</item> + <item name="android:textColor">@color/call_log_action_color</item> + <item name="android:textSize">@dimen/call_log_primary_text_size</item> + <item name="android:fontFamily">"sans-serif"</item> + <item name="android:focusable">true</item> + <item name="android:singleLine">true</item> + <item name="android:importantForAccessibility">no</item> + </style> + + <style name="CallLogActionSupportTextStyle" parent="@style/CallLogActionTextStyle"> + <item name="android:textSize">@dimen/call_log_detail_text_size</item> + <item name="android:textColor">@color/call_log_detail_color</item> + </style> + + <style name="CallLogActionIconStyle"> + <item name="android:layout_width">@dimen/call_log_action_icon_dimen</item> + <item name="android:layout_height">@dimen/call_log_action_icon_dimen</item> + <item name="android:layout_marginStart">@dimen/call_log_action_icon_margin_start</item> + <item name="android:tint">?android:textColorSecondary</item> + <item name="android:importantForAccessibility">no</item> + </style> + + <style name="DismissButtonStyle"> + <item name="android:paddingLeft">@dimen/dismiss_button_padding_start</item> + <item name="android:paddingRight">@dimen/dismiss_button_padding_end</item> + </style> + + <!-- Style applied to the "Settings" screen. Keep in sync with SettingsLight in Telephony. --> + <style name="SettingsStyle" parent="DialtactsThemeWithoutActionBarOverlay"> + <!-- Setting text. --> + <item name="android:textColorPrimary">@color/settings_text_color_primary</item> + <!-- 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> + + <style name="ManageBlockedNumbersStyle" parent="SettingsStyle"> + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:windowActionBarOverlay">true</item> + <item name="windowActionBarOverlay">true</item> + <item name="android:actionBarStyle">@style/ManageBlockedNumbersActionBarStyle</item> + <item name="actionBarStyle">@style/ManageBlockedNumbersActionBarStyle</item> + <item name="android:fastScrollTrackDrawable">@null</item> + </style> + + <style name="ManageBlockedNumbersActionBarStyle" parent="DialtactsActionBarWithoutTitleStyle"> + <!-- Styles that require AppCompat compatibility, remember to update both sets --> + <item name="android:height">@dimen/action_bar_height</item> + <item name="height">@dimen/action_bar_height</item> + </style> + + <style name="VoicemailPlaybackLayoutTextStyle"> + <item name="android:textSize">14sp</item> + </style> + + <style name="VoicemailPlaybackLayoutButtonStyle"> + <item name="android:layout_width">56dp</item> + <item name="android:layout_height">56dp</item> + <item name="android:background">@drawable/oval_ripple</item> + <item name="android:padding">8dp</item> + </style> + + <style name="DialerFlatButtonStyle" parent="@android:style/Widget.Material.Button"> + <item name="android:background">?android:attr/selectableItemBackground</item> + <item name="android:paddingEnd">@dimen/button_horizontal_padding</item> + <item name="android:paddingStart">@dimen/button_horizontal_padding</item> + <item name="android:textColor">@color/dialer_flat_button_text_color</item> + </style> + + <!-- Style for the 'primary' button in a view. Unlike the DialerFlatButtonStyle, this button --> + <!-- is not colored white, to draw more attention to it. --> + <style name="DialerPrimaryFlatButtonStyle" parent="@android:style/Widget.Material.Button"> + <item name="android:background">@drawable/selectable_primary_flat_button</item> + <item name="android:paddingEnd">@dimen/button_horizontal_padding</item> + <item name="android:paddingStart">@dimen/button_horizontal_padding</item> + <item name="android:textColor">@android:color/white</item> + </style> + + <style name="BlockedNumbersDescriptionTextStyle"> + <item name="android:lineSpacingMultiplier">1.43</item> + <item name="android:paddingTop">8dp</item> + <item name="android:paddingBottom">8dp</item> + <item name="android:textSize">@dimen/blocked_number_settings_description_text_size</item> + </style> + + <style name="FullWidthDivider"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">1dp</item> + <item name="android:background">?android:attr/listDivider</item> + </style> +</resources> |