Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright (C) 2013 The Android Open Source Project |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 11 | ~ Unless required by applicable law or agreed to in writing, software |
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ~ See the License for the specific language governing permissions and |
| 15 | ~ limitations under the License |
| 16 | --> |
| 17 | |
| 18 | <resources> |
| 19 | <drawable name="grayBg">#FF333333</drawable> |
| 20 | |
| 21 | <style name="info_label"> |
| 22 | <item name="android:layout_height">wrap_content</item> |
| 23 | <item name="android:layout_width">wrap_content</item> |
| 24 | <item name="android:textAppearance">@style/TextAppearance.info_label</item> |
| 25 | <item name="android:paddingEnd">4dip</item> |
| 26 | </style> |
| 27 | |
| 28 | <style name="info_layout"> |
| 29 | <item name="android:orientation">vertical</item> |
| 30 | <item name="android:paddingStart">10dip</item> |
| 31 | <item name="android:paddingTop">10dip</item> |
| 32 | <item name="android:paddingEnd">10dip</item> |
| 33 | <item name="android:paddingBottom">10dip</item> |
| 34 | <item name="android:layout_width">match_parent</item> |
| 35 | <item name="android:layout_height">match_parent</item> |
| 36 | </style> |
| 37 | |
| 38 | <style name="entry_layout"> |
| 39 | <item name="android:orientation">vertical</item> |
| 40 | <item name="android:layout_width">wrap_content</item> |
| 41 | <item name="android:layout_height">wrap_content</item> |
| 42 | </style> |
| 43 | |
| 44 | <style name="TextAppearance" parent="android:TextAppearance"> |
| 45 | </style> |
| 46 | |
| 47 | <style name="TextAppearance.info_label"> |
| 48 | <item name="android:textSize">14sp</item> |
| 49 | <item name="android:textStyle">bold</item> |
| 50 | </style> |
| 51 | |
| 52 | |
| 53 | <!-- Buttons in the main "button row" of the in-call onscreen touch UI. --> |
| 54 | <style name="InCallButton"> |
Andrew Lee | 466618d | 2014-05-08 16:13:23 -0700 | [diff] [blame] | 55 | <item name="android:layout_width">@dimen/in_call_button_dimension</item> |
| 56 | <item name="android:layout_height">@dimen/in_call_button_dimension</item> |
Andrew Lee | 466618d | 2014-05-08 16:13:23 -0700 | [diff] [blame] | 57 | <item name="android:layout_marginBottom">@dimen/call_button_margin_vertical</item> |
Andrew Lee | 9be2029 | 2014-05-20 17:25:34 -0700 | [diff] [blame] | 58 | <item name="android:layout_marginTop">@dimen/call_button_margin_vertical</item> |
Andrew Lee | 466618d | 2014-05-08 16:13:23 -0700 | [diff] [blame] | 59 | <item name="android:layout_marginLeft">@dimen/call_button_margin_horizontal</item> |
| 60 | <item name="android:layout_marginRight">@dimen/call_button_margin_horizontal</item> |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 61 | <item name="android:background">?android:attr/selectableItemBackground</item> |
| 62 | </style> |
| 63 | |
| 64 | <!-- "Compound button" variation of InCallButton. |
| 65 | These buttons have the concept of two states: checked and unchecked. |
| 66 | (This style is just like "InCallButton" except that we also |
| 67 | clear out android:textOn and android:textOff, to avoid the default |
| 68 | text label behavior of the ToggleButton class.) --> |
| 69 | <style name="InCallCompoundButton" parent="InCallButton"> |
| 70 | <item name="android:textOn">@null</item> |
| 71 | <item name="android:textOff">@null</item> |
| 72 | </style> |
| 73 | |
Chiao Cheng | 550f92b | 2013-07-19 19:10:55 -0700 | [diff] [blame] | 74 | <!-- Buttons in extra button row. --> |
| 75 | <style name="InCallExtraRowButton"> |
| 76 | <item name="android:layout_width">@dimen/extra_row_button_width</item> |
| 77 | <item name="android:layout_height">@dimen/extra_row_button_height</item> |
| 78 | <item name="android:background">@null</item> |
| 79 | </style> |
| 80 | |
| 81 | <!-- Text label drawn alongside buttons in the "extra button row" of |
| 82 | the in-call onscreen touch UI. --> |
| 83 | <style name="InCallExtraRowButtonLabel"> |
| 84 | <item name="android:textAppearance">?android:attr/textAppearanceSmall</item> |
| 85 | <item name="android:textColor">@color/incall_call_banner_text_color</item> |
| 86 | <item name="android:textAllCaps">true</item> |
| 87 | <item name="android:textStyle">bold</item> |
| 88 | <item name="android:layout_width">wrap_content</item> |
| 89 | <item name="android:layout_height">wrap_content</item> |
| 90 | <item name="android:layout_gravity">center_vertical</item> |
| 91 | <item name="android:layout_marginStart">5dip</item> |
| 92 | <item name="android:layout_marginEnd">5dip</item> |
| 93 | </style> |
| 94 | |
Christine Chen | 1bd21c5 | 2013-10-16 10:42:15 -0700 | [diff] [blame] | 95 | <style name="InCallAnimationStyle" parent="@android:style/Animation.Activity"> |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 96 | <!-- Suppress task-to-task animation happening during the transition from |
| 97 | OutgoingCallBroadcaster (and SipOptionHandler) to InCallActivity. |
| 98 | The transition unexpectedly happens during the transition (inside the phone task), |
| 99 | because InCallActivity is using android:launchMode="singleInstance". |
| 100 | |
| 101 | - taskOpenEnterAnimation/taskOpenExitAnimation is used for the first time |
| 102 | InCallActivity instance is created. |
| 103 | |
| 104 | - taskToFrontEnterAnimation/taskToFrontExitAnimation is used when InCallActivity |
| 105 | is already available. |
| 106 | (Note that InCallActivity won't be destroyed once it is created) |
| 107 | |
| 108 | TODO: try removing the flag instead --> |
Christine Chen | 1bd21c5 | 2013-10-16 10:42:15 -0700 | [diff] [blame] | 109 | <item name="android:taskOpenEnterAnimation">@anim/activity_open_enter</item> |
| 110 | <item name="android:taskOpenExitAnimation">@anim/activity_open_exit</item> |
| 111 | <item name="android:taskToFrontEnterAnimation">@anim/activity_open_enter</item> |
| 112 | <item name="android:taskToFrontExitAnimation">@anim/activity_open_exit</item> |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 113 | </style> |
| 114 | |
Yorke Lee | 8ef5cf3 | 2014-05-15 09:35:23 -0700 | [diff] [blame] | 115 | <!-- Theme for the InCallActivity activity. Should have a transparent background for the |
| 116 | circular reveal animation for a new outgoing call to work correctly. We don't just use |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 117 | Theme.Black.NoTitleBar directly, since we want any popups or dialogs |
| 118 | from the InCallActivity to have the correct holo style. --> |
| 119 | <style name="Theme.InCallScreen" parent="@android:style/Theme.Holo.NoActionBar"> |
Christine Chen | 1bd21c5 | 2013-10-16 10:42:15 -0700 | [diff] [blame] | 120 | <item name="android:windowAnimationStyle">@style/InCallAnimationStyle</item> |
Yorke Lee | 8ef5cf3 | 2014-05-15 09:35:23 -0700 | [diff] [blame] | 121 | <item name="android:windowIsTranslucent">true</item> |
| 122 | <item name="android:windowBackground">@android:color/transparent</item> |
| 123 | <item name="android:windowContentOverlay">@null</item> |
| 124 | <item name="android:windowNoTitle">true</item> |
Andrew Lee | 945ac0f | 2014-05-28 17:59:42 -0700 | [diff] [blame^] | 125 | <item name="dialpad_key_button_touch_tint">@color/incall_dialpad_touch_tint</item> |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 126 | </style> |
| 127 | |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 128 | <style name="PrimaryCallInfoPrimaryCallBanner"> |
| 129 | <item name="android:layout_alignParentTop">true</item> |
| 130 | </style> |
Chiao Cheng | a44c591 | 2013-07-15 14:54:27 -0700 | [diff] [blame] | 131 | </resources> |