• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<resources>
18    <drawable name="grayBg">#FF333333</drawable>
19
20    <style name="IccPanel">
21        <item name="android:windowFrame">@null</item>
22        <item name="android:windowBackground">@drawable/grayBg</item>
23    </style>
24
25    <style name="info_label">
26        <item name="android:layout_height">wrap_content</item>
27        <item name="android:layout_width">wrap_content</item>
28        <item name="android:textAppearance">@style/TextAppearance.info_label</item>
29        <item name="android:paddingEnd">4dip</item>
30    </style>
31
32    <style name="info_layout">
33        <item name="android:orientation">vertical</item>
34        <item name="android:paddingStart">10dip</item>
35        <item name="android:paddingTop">10dip</item>
36        <item name="android:paddingEnd">10dip</item>
37        <item name="android:paddingBottom">10dip</item>
38        <item name="android:layout_width">match_parent</item>
39        <item name="android:layout_height">match_parent</item>
40    </style>
41
42    <style name="entry_layout">
43        <item name="android:orientation">vertical</item>
44        <item name="android:layout_width">wrap_content</item>
45        <item name="android:layout_height">wrap_content</item>
46    </style>
47
48    <style name="TextAppearance" parent="android:TextAppearance">
49    </style>
50
51    <style name="TextAppearance.info_label">
52        <item name="android:textSize">14sp</item>
53        <item name="android:textStyle">bold</item>
54    </style>
55
56    <!-- Preference Style for the phone number preferences -->
57    <style name="EditPhoneNumberPreference">
58        <item name="enableButtonText">@string/enable</item>
59        <item name="disableButtonText">@string/disable</item>
60        <item name="changeNumButtonText">@string/change_num</item>
61        <item name="confirmMode">activation</item>
62    </style>
63
64    <!-- OTA Call Card styles -->
65    <style name="ccOtaButtonBar">
66        <!-- TODO: change height to 'wrap_content' when layout bug is fixed -->
67        <item name="android:layout_height">60dip</item>
68        <item name="android:layout_width">match_parent</item>
69        <item name="android:background">@android:drawable/bottom_bar</item>
70    </style>
71
72    <style name="ccOtaButton">
73        <item name="android:layout_width">150dip</item>
74        <item name="android:layout_height">wrap_content</item>
75        <item name="android:layout_marginTop">5dip</item>
76        <item name="android:layout_marginBottom">5dip</item>
77    </style>
78
79    <style name="ccOtaNextButton" parent="ccOtaButton">
80        <!-- <item name="android:drawableEnd">@drawable/ic_btn_next</item>
81             <item name="android:drawablePadding">10dip</item>
82          -->
83        <item name="android:layout_alignParentBottom">true</item>
84        <item name="android:layout_alignParentEnd">true</item>
85        <item name="android:layout_marginEnd">4dip</item>
86    </style>
87
88    <style name="ccOtaSkipButton" parent="ccOtaButton">
89        <item name="android:layout_alignParentBottom">true</item>
90        <item name="android:layout_alignParentStart">true</item>
91        <item name="android:layout_marginStart">4dip</item>
92    </style>
93
94    <style name="ccOtaWizardTitle">
95        <item name="android:textSize">22sp</item>
96        <item name="android:textColor">@color/ota_title_color</item>
97    </style>
98
99    <style name="ccOtaTextPrimary">
100        <item name="android:textColor">?android:attr/textColorPrimary</item>
101        <item name="android:textSize">17sp</item>
102    </style>
103
104    <!-- Buttons in the main "button row" of the in-call onscreen touch UI. -->
105    <style name="InCallButton">
106        <item name="android:layout_width">0px</item>
107        <item name="android:layout_height">@dimen/in_call_button_height</item>
108        <item name="android:layout_weight">1</item>
109        <item name="android:background">?android:attr/selectableItemBackground</item>
110    </style>
111
112    <!-- "Compound button" variation of InCallButton.
113         These buttons have the concept of two states: checked and unchecked.
114         (This style is just like "InCallButton" except that we also
115         clear out android:textOn and android:textOff, to avoid the default
116         text label behavior of the ToggleButton class.) -->
117    <style name="InCallCompoundButton" parent="InCallButton">
118        <item name="android:textOn">@null</item>
119        <item name="android:textOff">@null</item>
120    </style>
121
122    <style name="VerticalSeparator">
123        <item name="android:layout_width">2dp</item>
124        <item name="android:layout_height">match_parent</item>
125        <item name="android:background">@android:color/black</item>
126    </style>
127
128    <!-- "End" button; similar to InCallButton. -->
129    <style name="InCallEndButton">
130        <item name="android:layout_width">0dip</item>
131        <item name="android:layout_height">@dimen/in_call_end_button_height</item>
132        <item name="android:layout_weight">1</item>
133    </style>
134
135    <!-- Buttons in extra button row. -->
136    <style name="InCallExtraRowButton">
137        <item name="android:layout_width">@dimen/extra_row_button_width</item>
138        <item name="android:layout_height">@dimen/extra_row_button_height</item>
139        <item name="android:background">@null</item>
140    </style>
141
142    <!-- Text label drawn alongside buttons in the "extra button row" of
143         the in-call onscreen touch UI. -->
144    <style name="InCallExtraRowButtonLabel">
145        <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
146        <item name="android:textColor">@color/incall_call_banner_text_color</item>
147        <item name="android:textAllCaps">true</item>
148        <item name="android:textStyle">bold</item>
149        <item name="android:layout_width">wrap_content</item>
150        <item name="android:layout_height">wrap_content</item>
151        <item name="android:layout_gravity">center_vertical</item>
152        <item name="android:layout_marginStart">5dip</item>
153        <item name="android:layout_marginEnd">5dip</item>
154    </style>
155
156    <style name="SettingsLight" parent="android:Theme.Material.Light">
157        <item name="android:forceDarkAllowed">true</item>
158        <item name="android:windowBackground">@color/phone_settings_background_color</item>
159        <item name="android:windowContentOverlay">@null</item>
160        <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item>
161        <item name="android:actionMenuTextColor">@color/phone_settings_actionbar_text_color</item>
162        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
163        <item name="android:windowActionBarOverlay">false</item>
164        <item name="android:colorPrimaryDark">@color/actionbar_background_color_dark</item>
165        <!-- Setting text. -->
166        <item name="android:textColorPrimary">@color/settings_text_color_primary</item>
167        <!-- Setting description. -->
168        <item name="android:textColorSecondary">@color/settings_text_color_secondary</item>
169    </style>
170
171    <style name="DialerSettingsLight" parent="SettingsLight">
172        <!-- Action bar.-->
173        <item name="android:tint">@color/dialer_secondary_text_color</item>
174        <item name="android:windowBackground">@color/dialer_background_color</item>
175        <item name="android:actionModeBackground">@color/dialer_background_color</item>
176        <item name="android:windowLightStatusBar">true</item>
177        <!-- Navigation bar.-->
178        <item name="android:navigationBarColor">@color/dialer_background_color</item>
179        <item name="android:navigationBarDividerColor">@color/dialer_divider_color</item>
180        <item name="android:windowLightNavigationBar">true</item>
181        <item name="android:colorAccent">@color/dialer_theme_color</item>
182        <item name="android:dialogTheme">@style/DialerAlertDialogTheme</item>
183    </style>
184
185    <style name="DialerAlertDialogTheme"
186        parent="@android:style/Theme.Material.Light.Dialog">
187        <item name="android:forceDarkAllowed">true</item>
188        <item name="android:colorAccent">@color/dialer_theme_color</item>
189        <item name="android:textColor">?android:attr/textColorPrimaryInverseDisableOnly</item>
190    </style>
191
192    <style name="NetworkOperatorsSettingsTheme" parent="@android:style/Theme.DeviceDefault.Settings">
193        <item name="android:forceDarkAllowed">true</item>
194        <item name="android:switchPreferenceStyle">@style/SettingsSwitchPreference</item>
195        <item name="android:preferenceCategoryStyle">@style/SettingsPreferenceCategory</item>
196        <item name="android:preferenceStyle">@style/SettingsPreference</item>
197        <item name="android:dialogPreferenceStyle">@style/SettingsDialogPreference</item>
198        <item name="android:preferenceScreenStyle">@style/SettingsPreferenceScreen</item>
199    </style>
200
201    <style name="TrimmedHorizontalProgressBar" parent="android:Widget.Material.ProgressBar.Horizontal">
202        <item name="android:indeterminateDrawable">@drawable/progress_indeterminate_horizontal_material_trimmed</item>
203        <item name="android:minHeight">3dip</item>
204        <item name="android:maxHeight">3dip</item>
205    </style>
206
207    <style name="Empty" parent="@android:style/Theme.Material.Light">
208        <item name="android:forceDarkAllowed">true</item>
209        <item name="android:windowIsTranslucent">true</item>
210        <item name="android:windowBackground">@android:color/transparent</item>
211        <item name="android:windowContentOverlay">@null</item>
212        <item name="android:windowNoTitle">true</item>
213        <item name="android:windowIsFloating">true</item>
214        <item name="android:backgroundDimEnabled">true</item>
215    </style>
216
217    <style name="InCallAnimationStyle" parent="@*android:style/Animation.Holo.Activity">
218        <!-- Suppress task-to-task animation happening during the transition from
219             OutgoingCallBroadcaster (and SipOptionHandler) to InCallScreen.
220             The transition unexpectedly happens during the transition (inside the phone task),
221             because InCallScreen is using android:launchMode="singleInstance".
222
223             - taskOpenEnterAnimation/taskOpenExitAnimation is used for the first time
224               InCallScreen instance is created.
225
226             - taskToFrontEnterAnimation/taskToFrontExitAnimation is used when InCallScreen
227               is already available.
228               (Note that InCallScreen won't be destroyed once it is created)
229
230             TODO: try removing the flag instead -->
231        <item name="*android:taskOpenEnterAnimation">@*android:anim/activity_open_enter</item>
232        <item name="*android:taskOpenExitAnimation">@*android:anim/activity_open_exit</item>
233        <item name="*android:taskToFrontEnterAnimation">@*android:anim/activity_open_enter</item>
234        <item name="*android:taskToFrontExitAnimation">@*android:anim/activity_open_exit</item>
235    </style>
236
237    <style name="OutgoingAnimationStyle" parent="@*android:style/Animation.Holo.Activity">
238        <!-- Suppress task-to-task transition animation happening from
239             DialtactsActivity to OutgoingCallBroadcaster. -->
240        <item name="*android:taskOpenEnterAnimation">@*android:anim/activity_open_enter</item>
241        <item name="*android:taskOpenExitAnimation">@*android:anim/activity_open_exit</item>
242    </style>
243
244    <!-- Style for the call settings action bar.  Should be kept in sync with Dialer. -->
245    <style name="DialtactsActionBarStyle" parent="@style/TelephonyActionBarStyle">
246        <!-- Shift the title text to the right -->
247        <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
248    </style>
249
250    <style name="TelephonyActionBarStyle" parent="android:Widget.Material.ActionBar">
251        <item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
252        <item name="android:background">@color/actionbar_background_color</item>
253        <item name="android:titleTextStyle">@style/DialtactsActionBarTitleText</item>
254        <item name="android:height">@dimen/action_bar_height</item>
255        <item name="android:elevation">@dimen/action_bar_elevation</item>
256        <!-- Empty icon -->
257        <item name="android:icon">@android:color/transparent</item>
258    </style>
259
260    <!-- Text in the action bar at the top of the screen.  Should be kept in sync with Dialer. -->
261    <style name="DialtactsActionBarTitleText"
262           parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
263        <item name="android:textColor">@color/dialer_primary_text_color</item>
264        <item name="android:textSize">@dimen/dialer_head1_font_size</item>
265        <item name="android:fontFamily">sans-serif-regular</item>
266    </style>
267
268    <!-- Action bar overflow menu icon. -->
269    <style name="DialtactsActionBarOverflow"
270           parent="@android:style/Widget.Holo.ActionButton.Overflow">
271        <item name="android:src">@drawable/overflow_menu</item>
272    </style>
273
274    <style name="EmergencyDialerTheme" parent="@*android:style/Theme.DeviceDefault.Settings.Dark.NoActionBar">
275        <item name="android:forceDarkAllowed">true</item>
276        <item name="android:colorPrimaryDark">?android:attr/colorPrimary</item>
277        <item name="android:colorBackgroundCacheHint">@null</item>
278        <item name="android:windowShowWallpaper">true</item>
279        <item name="android:statusBarColor">@android:color/transparent</item>
280        <item name="android:navigationBarColor">@android:color/transparent</item>
281        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
282        <item name="emergencyButtonBackgroundColor">#3cffffff</item>
283        <item name="dialpadTheme">@style/Dialpad_DarkTransparent</item>
284    </style>
285
286    <style name="EmergencyDialerThemeDark" parent="@style/EmergencyDialerTheme">
287        <item name="android:forceDarkAllowed">true</item>
288        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
289        <item name="emergencyButtonBackgroundColor">#19414549</item>
290        <item name="android:colorControlHighlight">#40000000</item>
291        <item name="dialpadTheme">@style/Dialpad_LightTransparent</item>
292    </style>
293
294    <style name="EmergencyDialerAlertDialogTheme"
295           parent="@android:style/Theme.Material.Dialog">
296        <item name="android:forceDarkAllowed">true</item>
297        <item name="android:textColor">?android:attr/textColorPrimary</item>
298    </style>
299
300    <style name="SimImportTheme" parent="@android:style/Theme.Material.Light">
301        <item name="android:forceDarkAllowed">true</item>
302        <item name="android:actionBarStyle">@style/TelephonyActionBarStyle</item>
303        <item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
304        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
305        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
306    </style>
307
308    <style name="OutgoingCallBroadcasterTheme" parent="@android:style/Theme.Holo.NoActionBar">
309        <item name="android:forceDarkAllowed">true</item>
310        <item name="android:windowBackground">@android:color/black</item>
311
312        <item name="*android:windowAnimationStyle">@style/OutgoingAnimationStyle</item>
313    </style>
314
315    <style name="DialtactsDigitsTextAppearance">
316        <item name="android:maxLines">1</item>
317        <item name="android:textSize">@dimen/dialpad_digits_text_size</item>
318        <item name="android:textColor">?android:attr/textColorPrimary</item>
319        <item name="android:freezesText">true</item>
320        <item name="android:editable">true</item>
321        <item name="android:cursorVisible">false</item>
322    </style>
323
324    <style name="Theme.Transparent" parent="android:Theme">
325        <item name="android:windowIsTranslucent">true</item>
326        <item name="android:windowBackground">@android:color/transparent</item>
327        <item name="android:windowContentOverlay">@null</item>
328        <item name="android:windowNoTitle">true</item>
329        <item name="android:windowIsFloating">true</item>
330        <item name="android:backgroundDimEnabled">false</item>
331    </style>
332
333    <style name="CallSettingsWithoutDividerTheme" parent="SettingsLight">
334        <item name="android:forceDarkAllowed">true</item>
335        <item name="android:listDivider">@null</item>
336    </style>
337
338    <style name="HeadlineTextAppearance">
339        <item name="android:textColor">@android:color/white</item>
340        <item name="android:textSize">22sp</item>
341    </style>
342
343    <style name="SubtitleTextAppearance" parent="@style/HeadlineTextAppearance">
344        <item name="android:textSize">14sp</item>
345    </style>
346
347    <style name="PhoneNumberTextAppearance">
348        <item name="android:textColor">@android:color/white</item>
349        <item name="android:textSize">32sp</item>
350    </style>
351
352    <style name="PhoneCallHintTextAppearance" parent="@style/PhoneNumberTextAppearance">
353        <item name="android:textSize">18sp</item>
354    </style>
355
356    <style name="ShortcutsHintTextAppearance" parent="@style/HeadlineTextAppearance">
357        <item name="android:textSize">16sp</item>
358    </style>
359</resources>
360