1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2018 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<resources>
18
19    <style name="NotificationCenterAppTitle" parent="@android:TextAppearance.DeviceDefault.Large">
20        <item name="android:maxLines">1</item>
21    </style>
22
23    <style name="NotificationCenterHeaderText" parent="TextAppearance.Car.Subhead.Medium">
24        <item name="android:layout_marginStart">@dimen/notification_card_margin_horizontal</item>
25        <item name="android:paddingBottom">@dimen/notification_header_text_padding_bottom</item>
26        <item name="android:paddingTop">@dimen/notification_header_text_padding_top</item>
27        <item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
28    </style>
29
30    <style name="NotificationHeaderText" parent="@android:TextAppearance.DeviceDefault">
31        <item name="android:gravity">center_vertical</item>
32        <item name="android:maxWidth">@dimen/notification_text_max_width</item>
33        <item name="android:maxLines">1</item>
34        <item name="android:ellipsize">end</item>
35        <item name="android:textSize">@*android:dimen/car_headline3_size</item>
36    </style>
37
38    <style name="NotificationBodyTitleText" parent="TextAppearance.Car.Body.Large">
39        <item name="android:maxLines">3</item>
40        <item name="android:maxWidth">@dimen/notification_text_max_width</item>
41        <item name="android:ellipsize">end</item>
42        <item name="android:textAlignment">viewStart</item>
43        <item name="android:textSize">@*android:dimen/car_headline2_size</item>
44        <item name="android:includeFontPadding">false</item>
45    </style>
46
47    <style name="InGroupTimeStampText" parent="@android:TextAppearance.DeviceDefault">
48        <item name="android:textSize">@dimen/time_stamp_text_size_in_group</item>
49        <item name="android:textColor">@color/secondary_text_color</item>
50        <item name="android:textAlignment">viewStart</item>
51        <item name="android:ellipsize">end</item>
52        <item name="android:maxLines">1</item>
53        <item name="android:textSize">@*android:dimen/car_headline3_size</item>
54    </style>
55
56    <style name="NotificationBodyContentText" parent="TextAppearance.Car.Body.Small">
57        <item name="android:ellipsize">end</item>
58        <item name="android:maxWidth">@dimen/notification_text_max_width</item>
59        <item name="android:textColor">@color/secondary_text_color</item>
60        <item name="android:textAlignment">viewStart</item>
61        <item name="android:textSize">@*android:dimen/car_headline3_size</item>
62    </style>
63
64    <style name="GroupNotificationFooterText" parent="TextAppearance.Car.Subhead.Medium">
65        <item name="android:gravity">center</item>
66        <item name="android:ellipsize">end</item>
67        <item name="android:maxWidth">@dimen/notification_text_max_width</item>
68        <item name="android:textColor">?android:attr/colorAccent</item>
69        <item name="android:textStyle">bold</item>
70        <item name="android:textAlignment">gravity</item>
71        <item name="android:textDirection">locale</item>
72        <item name="android:textSize">@*android:dimen/car_headline3_size</item>
73    </style>
74
75    <style name="ExpandedGroupNotificationHeaderText"
76           parent="@android:TextAppearance.DeviceDefault">
77        <item name="android:textSize">@*android:dimen/car_headline2_size</item>
78        <item name="android:gravity">center_vertical</item>
79        <item name="android:ellipsize">end</item>
80        <item name="android:maxWidth">@dimen/notification_text_max_width</item>
81        <item name="android:textAlignment">gravity</item>
82        <item name="android:textDirection">locale</item>
83    </style>
84
85    <style name="NotificationBodyImageIcon">
86        <item name="android:scaleType">fitCenter</item>
87        <item name="android:background">@null</item>
88    </style>
89
90    <style name="NotificationActionViewLayout">
91        <item name="android:orientation">horizontal</item>
92        <item name="android:minHeight">@dimen/card_min_bottom_padding</item>
93        <item name="android:layout_marginLeft">@dimen/action_view_left_margin</item>
94        <item name="android:layout_marginRight">@dimen/action_view_right_margin</item>
95    </style>
96
97    <style name="NotificationActionButtonBase" parent="@android:Widget.DeviceDefault.Button">
98        <item name="android:minWidth">@dimen/action_button_min_width</item>
99        <item name="android:gravity">center</item>
100        <item name="android:paddingStart">@dimen/action_button_padding</item>
101        <item name="android:paddingEnd">@dimen/action_button_padding</item>
102        <item name="android:orientation">horizontal</item>
103    </style>
104
105    <style name="NotificationActionButton1" parent="@android:Widget.DeviceDefault.Button.Colored">
106        <item name="android:minWidth">@dimen/action_button_min_width</item>
107        <item name="android:gravity">center</item>
108        <item name="android:paddingStart">@dimen/action_button_padding</item>
109        <item name="android:paddingEnd">@dimen/action_button_padding</item>
110        <item name="android:orientation">horizontal</item>
111    </style>
112
113    <style name="NotificationActionButton2" parent="NotificationActionButtonBase"/>
114
115    <style name="NotificationActionButton3" parent="NotificationActionButtonBase"/>
116
117    <style name="NotificationActionButtonText" parent="TextAppearance.Car.Button">
118        <item name="android:textAllCaps">false</item>
119        <item name="android:textColor">@color/notification_accent_color</item>
120        <item name="android:maxLines">1</item>
121        <item name="android:ellipsize">end</item>
122        <item name="android:textSize">@*android:dimen/car_headline3_size</item>
123    </style>
124
125    <style name="NotificationActionButtonImage">
126        <item name="android:layout_marginEnd">@dimen/car_action_button_icon_margin</item>
127    </style>
128
129    <style name="DismissButtonLayout">
130        <item name="android:layout_gravity">top|right</item>
131    </style>
132
133    <style name="ClearAllButton" parent="@android:Widget.DeviceDefault.Button.Borderless.Colored">
134        <item name="android:minWidth">@dimen/clear_all_button_min_width</item>
135        <item name="android:paddingStart">@dimen/clear_all_button_padding</item>
136        <item name="android:paddingEnd">@dimen/clear_all_button_padding</item>
137        <item name="android:textColor">@android:color/white</item>
138        <item name="android:gravity">center</item>
139        <item name="android:textAllCaps">false</item>
140        <item name="android:background">@drawable/clear_all_button_background</item>
141    </style>
142
143    <style name="ClearAllButtonHeader" parent="ClearAllButton">
144    </style>
145
146    <style name="ClearAllButtonFooter" parent="ClearAllButton">
147    </style>
148
149    <style name="ManageButton" parent="ClearAllButton">
150    </style>
151
152    <style name="NotificationCard">
153        <item name="android:layout_width">match_parent</item>
154        <item name="android:layout_height">wrap_content</item>
155        <item name="android:layout_gravity">center_horizontal</item>
156        <item name="android:layout_marginEnd">@dimen/notification_card_margin_horizontal</item>
157        <item name="android:layout_marginStart">@dimen/notification_card_margin_horizontal</item>
158    </style>
159
160    <style name="HeadsUpNotificationCard" parent="NotificationCard">
161        <item name="android:layout_marginEnd">@dimen/notification_headsup_card_margin_horizontal
162        </item>
163        <item name="android:layout_marginStart">@dimen/notification_headsup_card_margin_horizontal
164        </item>
165    </style>
166</resources>
167
168