diff options
Diffstat (limited to 'java/com/android/dialer/callcomposer/res/values')
4 files changed, 179 insertions, 0 deletions
diff --git a/java/com/android/dialer/callcomposer/res/values/colors.xml b/java/com/android/dialer/callcomposer/res/values/colors.xml new file mode 100644 index 000000000..89e55b79a --- /dev/null +++ b/java/com/android/dialer/callcomposer/res/values/colors.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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> + <!-- 50% black --> + <color name="call_composer_background_color">#7F000000</color> + <color name="call_composer_divider">#12000000</color> + <color name="compose_and_call_background">#00BC35</color> + <color name="gallery_item_image_color">#607D8B</color> + <color name="gallery_item_background_color">#ECEFF1</color> +</resources>
\ No newline at end of file diff --git a/java/com/android/dialer/callcomposer/res/values/dimens.xml b/java/com/android/dialer/callcomposer/res/values/dimens.xml new file mode 100644 index 000000000..3ebda7a0f --- /dev/null +++ b/java/com/android/dialer/callcomposer/res/values/dimens.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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> + <dimen name="call_composer_view_pager_height">258dp</dimen> + + <!-- Toolbar --> + <dimen name="toolbar_title_text_size">16sp</dimen> + <dimen name="toolbar_subtitle_text_size">14sp</dimen> + + <!-- Contact bar --> + <dimen name="call_composer_contact_photo_border_thickness">2dp</dimen> + <dimen name="call_composer_contact_photo_size">116dp</dimen> + <dimen name="call_composer_contact_container_margin_top">58dp</dimen> + <dimen name="call_composer_contact_container_padding_top">58dp</dimen> + <dimen name="call_composer_contact_container_padding_bottom">18dp</dimen> + <dimen name="call_composer_name_text_size">32sp</dimen> + <dimen name="call_composer_number_text_size">16sp</dimen> + <dimen name="call_composer_contact_container_elevation">2dp</dimen> + + <!-- Media bar --> + <dimen name="call_composer_media_actions_width">80dp</dimen> + <dimen name="call_composer_media_bar_height">48dp</dimen> + + <!-- Send and Call button --> + <dimen name="send_and_call_icon_size">18dp</dimen> + <dimen name="send_and_call_text_size">16sp</dimen> + <dimen name="send_and_call_padding">8dp</dimen> + <dimen name="send_and_call_drawable_padding">4dp</dimen> + + <!-- Message Composer --> + <dimen name="message_composer_item_padding">16dp</dimen> + <dimen name="message_compose_item_text_size">16sp</dimen> + <dimen name="message_compose_remaining_char_text_size">12sp</dimen> + <dimen name="message_composer_divider_height">1dp</dimen> + <integer name="call_composer_message_limit">60</integer> + + <!-- Gallery Composer --> + <dimen name="gallery_item_selected_padding">6dp</dimen> + <dimen name="gallery_item_padding">3dp</dimen> + <dimen name="gallery_check_size">48dp</dimen> + <dimen name="gallery_item_corner_radius">2dp</dimen> + + <!-- Permissions view --> + <dimen name="permission_image_size">72dp</dimen> + <dimen name="allow_permission_text_size">16sp</dimen> + <dimen name="permission_item_margin">8dp</dimen> + <dimen name="permission_allow_padding">16dp</dimen> + <dimen name="min_touch_target_size">48dp</dimen> +</resources>
\ No newline at end of file diff --git a/java/com/android/dialer/callcomposer/res/values/strings.xml b/java/com/android/dialer/callcomposer/res/values/strings.xml new file mode 100644 index 000000000..35a8cf9da --- /dev/null +++ b/java/com/android/dialer/callcomposer/res/values/strings.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- A default message to send with a phone call. [CHAR LIMIT=27] --> + <string name="urgent">Urgent! Please pick up!</string> + <!-- A default message to send with a phone call. [CHAR LIMIT=27] --> + <string name="want_to_chat">Want to chat?</string> + <!-- A default message to send with a phone call. [CHAR LIMIT=27] --> + <string name="quick_question">Quick question…</string> + <!-- Hint in a text field to compose a custom message to send with a phone call [CHAR LIMIT=27] --> + <string name="custom_message_hint">Write a custom message</string> + <!-- Text for a button to make a phone call combined with a picture or text message [CHAR LIMIT=26] --> + <string name="send_and_call">Send and call</string> + <!-- Accessibility description for each image in the gallery. For example, "image January 17 2015 1 59 pm". --> + <string name="gallery_item_description">image <xliff:g id="date">%1$tB %1$te %1$tY %1$tl %1$tM %1$tp</xliff:g></string> + <!-- Accessibility description for each image in the gallery when no date is present. --> + <string name="gallery_item_description_no_date">image</string> + <!-- Content description of button to switch camera to picture more --> + <string name="camera_switch_to_still_mode">Take a photo</string> + <!-- Error toast message shown when a camera image failed to attach to the message --> + <string name="camera_media_failure">Couldn\'t load camera image</string> + <!-- Text for a button to ask for device permissions --> + <string name="allow">Allow</string> + <!-- Text presented to the user explaining that we need Camera permission to take photos --> + <string name="camera_permission_text">To take a photo, give access to Camera</string> + <!-- Text presented to the user explaining that we need device storage permission to view photos --> + <string name="gallery_permission_text">To share an image, give access to Media</string> +</resources>
\ No newline at end of file diff --git a/java/com/android/dialer/callcomposer/res/values/styles.xml b/java/com/android/dialer/callcomposer/res/values/styles.xml new file mode 100644 index 000000000..891f6397d --- /dev/null +++ b/java/com/android/dialer/callcomposer/res/values/styles.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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="Theme.AppCompat.CallComposer" parent="Theme.AppCompat.NoActionBar"> + <item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item> + <item name="android:windowBackground">@android:color/transparent</item> + <item name="android:colorBackgroundCacheHint">@null</item> + <item name="android:windowFrame">@null</item> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowAnimationStyle">@null</item> + <item name="android:windowIsFloating">false</item> + <item name="android:windowIsTranslucent">true</item> + <item name="android:windowNoTitle">true</item> + <item name="android:listViewStyle">@style/ListViewStyle</item> + <!-- We need to use a light ripple behind ActionBar items in order for them to + be visible when using some of the darker ActionBar tints --> + <item name="android:actionBarItemBackground">@drawable/item_background_material_borderless_dark</item> + </style> + + <style name="message_composer_textview"> + <item name="android:textSize">@dimen/message_compose_item_text_size</item> + <item name="android:textColor">@color/dialer_primary_text_color</item> + <item name="android:padding">@dimen/message_composer_item_padding</item> + <item name="android:background">@drawable/item_background_material_light</item> + </style> + + <style name="call_composer_toolbar_title_text"> + <item name="android:textSize">@dimen/toolbar_title_text_size</item> + <item name="android:textColor">@color/background_dialer_white</item> + </style> + + <style name="call_composer_toolbar_subtitle_text"> + <item name="android:textSize">@dimen/toolbar_subtitle_text_size</item> + <item name="android:textColor">@color/background_dialer_white</item> + </style> +</resources>
\ No newline at end of file |