diff options
author | calderwoodra <calderwoodra@google.com> | 2018-05-19 00:05:02 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-21 13:17:30 -0700 |
commit | 929539eb864822d669265b142bdcc49b6cf8ea6b (patch) | |
tree | fcaef3fac4068e3669ca5916f7a743d0d5e41bbb /java/com/android/incallui/theme/res/values/dimens.xml | |
parent | ea7399a7c0c8a3832a6592aee0a0372c300b11f5 (diff) |
Implement a global theme to be easily configured in Dialer.
deleted several colors and unified them across the app
migrated several alert dialogs to support alert dialogs
added many todos
migrated several tests from GoogleRobolectricTestRunner to RobolectricTestRunner
Because of the test migration:
- moved dialpad theme attributes into dialpad/theme
- moved incall ui theme attributes into incallui/theme
Bug: 79883035
Test: tap
PiperOrigin-RevId: 197246477
Change-Id: Ifc534793bc32757bbbf2007a7c40287c8d0817ad
Diffstat (limited to 'java/com/android/incallui/theme/res/values/dimens.xml')
-rw-r--r-- | java/com/android/incallui/theme/res/values/dimens.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/java/com/android/incallui/theme/res/values/dimens.xml b/java/com/android/incallui/theme/res/values/dimens.xml new file mode 100644 index 000000000..a84d8192a --- /dev/null +++ b/java/com/android/incallui/theme/res/values/dimens.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2013 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> + <!-- The InCallUI dialpad will sometimes want digits sizes that are different + from dialer. Note, these are the default sizes for small devices. Larger + screen sizes apply the values in values-sw360dp/dimens.xml. --> + <dimen name="incall_dialpad_key_number_margin_bottom">1dp</dimen> + <dimen name="incall_dialpad_digits_adjustable_text_size">20sp</dimen> + <dimen name="incall_dialpad_digits_adjustable_height">50dp</dimen> + <dimen name="incall_dialpad_key_letters_size_for_dual_alphabets">9sp</dimen> + <dimen name="incall_dialpad_key_letters_size_for_single_alphabet"> + @dimen/dialpad_key_letters_default_size_for_single_alphabet + </dimen> + <dimen name="incall_dialpad_key_numbers_size">36dp</dimen> + <dimen name="incall_end_call_spacing">116dp</dimen> + + <!-- Dimension used to possibly down-scale high-res photo into what is suitable + for notification's large icon. --> + <dimen name="notification_icon_size">64dp</dimen> + + <dimen name="conference_call_manager_button_dimension">48dp</dimen> + + <dimen name="return_to_call_initial_offset_y">120dp</dimen> + + <!-- Whether or not the landscape mode layout is currently being used --> + <bool name="is_layout_landscape">false</bool> + + <dimen name="video_call_lte_to_wifi_failed_do_not_show_text_size">16sp</dimen> + +</resources> |