blob: c86e570b809ad5ca7bbe9fa5054f56b5aa9856f0 [file] [log] [blame]
Chiao Chenga44c5912013-07-15 14:54:27 -07001<?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">
55 <item name="android:layout_width">0px</item>
56 <item name="android:layout_height">@dimen/in_call_button_height</item>
57 <item name="android:layout_weight">1</item>
58 <item name="android:background">?android:attr/selectableItemBackground</item>
59 </style>
60
61 <!-- "Compound button" variation of InCallButton.
62 These buttons have the concept of two states: checked and unchecked.
63 (This style is just like "InCallButton" except that we also
64 clear out android:textOn and android:textOff, to avoid the default
65 text label behavior of the ToggleButton class.) -->
66 <style name="InCallCompoundButton" parent="InCallButton">
67 <item name="android:textOn">@null</item>
68 <item name="android:textOff">@null</item>
69 </style>
70
71 <style name="VerticalSeparator">
72 <item name="android:layout_width">2dp</item>
73 <item name="android:layout_height">match_parent</item>
74 <item name="android:background">@android:color/black</item>
75 </style>
76
77 <!-- "End" button; similar to InCallButton. -->
78 <style name="InCallEndButton">
79 <item name="android:layout_width">0dip</item>
80 <item name="android:layout_height">@dimen/in_call_end_button_height</item>
81 <item name="android:layout_weight">1</item>
82 </style>
83
84 <style name="InCallAnimationStyle" parent="@*android:style/Animation.Holo.Activity">
85 <!-- Suppress task-to-task animation happening during the transition from
86 OutgoingCallBroadcaster (and SipOptionHandler) to InCallActivity.
87 The transition unexpectedly happens during the transition (inside the phone task),
88 because InCallActivity is using android:launchMode="singleInstance".
89
90 - taskOpenEnterAnimation/taskOpenExitAnimation is used for the first time
91 InCallActivity instance is created.
92
93 - taskToFrontEnterAnimation/taskToFrontExitAnimation is used when InCallActivity
94 is already available.
95 (Note that InCallActivity won't be destroyed once it is created)
96
97 TODO: try removing the flag instead -->
98 <item name="*android:taskOpenEnterAnimation">@*android:anim/activity_open_enter</item>
99 <item name="*android:taskOpenExitAnimation">@*android:anim/activity_open_exit</item>
100 <item name="*android:taskToFrontEnterAnimation">@*android:anim/activity_open_enter</item>
101 <item name="*android:taskToFrontExitAnimation">@*android:anim/activity_open_exit</item>
102 </style>
103
104 <!-- Theme for the InCallActivity activity. This gives us a totally black
105 window background instead of the default dark grey. (We don't just use
106 Theme.Black.NoTitleBar directly, since we want any popups or dialogs
107 from the InCallActivity to have the correct holo style. -->
108 <style name="Theme.InCallScreen" parent="@android:style/Theme.Holo.NoActionBar">
109 <item name="android:windowBackground">@android:color/black</item>
110
111 <item name="*android:windowAnimationStyle">@style/InCallAnimationStyle</item>
112 </style>
113
114 <style name="DialpadButtonStyle">
115 <item name="android:layout_width">0dip</item>
116 <item name="android:layout_height">match_parent</item>
117 <item name="android:layout_weight">1</item>
118 <item name="android:background">?android:attr/selectableItemBackground</item>
119 <item name="android:soundEffectsEnabled">false</item>
120 </style>
121
122 <style name="DialtactsDigitsTextAppearance">
123 <item name="android:maxLines">1</item>
124 <item name="android:textSize">@dimen/dialpad_digits_text_size</item>
125 <item name="android:textColor">?android:attr/textColorPrimary</item>
126 <item name="android:freezesText">true</item>
127 <item name="android:editable">true</item>
128 <item name="android:cursorVisible">false</item>
129 </style>
130
131 <style name="PrimaryCallInfoPrimaryCallBanner">
132 <item name="android:layout_alignParentTop">true</item>
133 </style>
134 <style name="PrimaryCallInfoSecondaryInfoContainer">
135 <item name="android:layout_below">@id/primary_call_banner</item>
136 </style>
137
138 <style name="SecondaryCallInfoSecondaryCallName">
139 <item name="android:layout_gravity">top|left</item>
140 </style>
141 <style name="SecondaryCallInfoSecondaryCallStatus">
142 <item name="android:layout_gravity">top|right</item>
143 </style>
144</resources>