Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 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 xmlns:android="http://schemas.android.com/apk/res/android"> |
Qiwen Zhao | 42945d8 | 2014-09-18 08:39:21 -0700 | [diff] [blame] | 19 | <style name="TextAppearance.LeanbackBase" parent="android:TextAppearance.Holo"> |
| 20 | </style> |
| 21 | <style name="TextAppearance.Leanback" parent="TextAppearance.LeanbackBase"> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 22 | <!-- Any text appearance overrides go here. --> |
| 23 | <item name="android:fontFamily">sans-serif-condensed</item> |
| 24 | </style> |
| 25 | |
| 26 | <style name="TextAppearance.Leanback.Title" parent="TextAppearance.Leanback"> |
| 27 | <item name="android:fontFamily">sans-serif-light</item> |
| 28 | <item name="android:textSize">@dimen/lb_browse_title_text_size</item> |
| 29 | <item name="android:textColor">@color/lb_browse_title_color</item> |
| 30 | </style> |
| 31 | |
| 32 | <style name="TextAppearance.Leanback.Header" parent="TextAppearance.Leanback"> |
| 33 | <item name="android:textSize">@dimen/lb_browse_header_text_size</item> |
| 34 | <item name="android:textColor">@color/lb_browse_header_color</item> |
| 35 | </style> |
| 36 | |
| 37 | <style name="TextAppearance.Leanback.Row.Header" parent="TextAppearance.Leanback.Header"> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 38 | </style> |
| 39 | |
| 40 | <style name="TextAppearance.Leanback.SearchTextEdit" parent="TextAppearance.Leanback"> |
| 41 | <item name="android:textSize">@dimen/lb_search_bar_text_size</item> |
| 42 | </style> |
| 43 | |
| 44 | <style name="TextAppearance.Leanback.DetailsDescriptionTitle"> |
| 45 | <item name="android:textSize">@dimen/lb_details_description_title_text_size</item> |
| 46 | <item name="android:textColor">@color/lb_details_description_color</item> |
Dharmesh Mokani | fe7af4e | 2014-07-31 09:29:59 -0700 | [diff] [blame] | 47 | <item name="android:fontFamily">sans-serif-light</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 48 | </style> |
| 49 | |
| 50 | <style name="TextAppearance.Leanback.DetailsDescriptionSubtitle"> |
| 51 | <item name="android:textSize">@dimen/lb_details_description_subtitle_text_size</item> |
| 52 | <item name="android:textColor">@color/lb_details_description_color</item> |
| 53 | <item name="android:fontFamily">sans-serif</item> |
| 54 | </style> |
| 55 | |
| 56 | <style name="TextAppearance.Leanback.DetailsDescriptionBody"> |
| 57 | <item name="android:textSize">@dimen/lb_details_description_body_text_size</item> |
Dharmesh Mokani | fe7af4e | 2014-07-31 09:29:59 -0700 | [diff] [blame] | 58 | <item name="android:textColor">@color/lb_details_description_body_color</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 59 | <item name="android:fontFamily">sans-serif</item> |
| 60 | </style> |
| 61 | |
| 62 | <style name="TextAppearance.Leanback.DetailsActionButton"> |
| 63 | <item name="android:textSize">@dimen/lb_action_text_size</item> |
| 64 | <item name="android:textColor">@color/lb_action_text_color</item> |
| 65 | <item name="android:textAllCaps">true</item> |
| 66 | </style> |
| 67 | |
Ying Wang | bb09c25 | 2014-08-05 14:40:52 -0700 | [diff] [blame] | 68 | <style name="TextAppearance.Leanback.PlaybackControlsTime"> |
| 69 | <item name="android:textSize">@dimen/lb_playback_controls_time_text_size</item> |
| 70 | <item name="android:textColor">@color/lb_playback_controls_time_text_color</item> |
| 71 | <item name="android:fontFamily">sans-serif</item> |
| 72 | </style> |
| 73 | |
Qiwen Zhao | 5ab314b | 2014-11-12 09:37:55 -0800 | [diff] [blame] | 74 | <style name="TextAppearance.Leanback.PlaybackControlLabel"> |
| 75 | <item name="android:textSize">@dimen/lb_control_button_text_size</item> |
| 76 | <item name="android:textColor">@color/lb_control_button_text</item> |
| 77 | <item name="android:fontFamily">sans-serif</item> |
| 78 | </style> |
| 79 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 80 | <style name="TextAppearance.Leanback.ErrorMessage"> |
| 81 | <item name="android:textSize">@dimen/lb_error_message_text_size</item> |
Qiwen Zhao | f6df06f | 2014-12-04 12:07:35 -0800 | [diff] [blame] | 82 | <item name="android:textColor">@color/lb_error_message</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 83 | <item name="android:fontFamily">sans-serif</item> |
| 84 | </style> |
| 85 | |
Qiwen Zhao | 42945d8 | 2014-09-18 08:39:21 -0700 | [diff] [blame] | 86 | <style name="Widget.LeanbackBase" parent="android:Widget.Holo" /> |
| 87 | <style name="Widget.Leanback" parent="Widget.LeanbackBase" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 88 | |
Dharmesh Mokani | 371b2b6 | 2014-08-07 22:07:03 -0700 | [diff] [blame] | 89 | <style name="Widget.Leanback.BaseCardViewStyle"> |
| 90 | <item name="android:foreground">@drawable/lb_card_foreground</item> |
| 91 | </style> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 92 | |
| 93 | <style name="Widget.Leanback.ImageCardViewStyle" parent="Widget.Leanback.BaseCardViewStyle"> |
| 94 | <item name="cardType">infoUnder</item> |
| 95 | <item name="infoVisibility">activated</item> |
| 96 | <item name="android:background">@color/lb_basic_card_bg_color</item> |
Yao Chen | 8269d93 | 2014-08-11 14:04:58 -0700 | [diff] [blame] | 97 | <item name="infoAreaBackground">@color/lb_basic_card_info_bg_color</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 98 | </style> |
| 99 | |
| 100 | <style name="Widget.Leanback.TitleView" > |
| 101 | </style> |
| 102 | |
| 103 | <style name="Widget.Leanback.Title" /> |
| 104 | |
| 105 | <style name="Widget.Leanback.Title.Text"> |
| 106 | <item name="android:singleLine">true</item> |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 107 | <item name="android:gravity">end</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 108 | <item name="android:ellipsize">end</item> |
| 109 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Title</item> |
| 110 | </style> |
| 111 | |
| 112 | <style name="Widget.Leanback.Title.Icon"> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 113 | </style> |
| 114 | |
| 115 | <!-- HeadersFragment --> |
| 116 | <style name="Widget.Leanback.Headers" /> |
| 117 | |
| 118 | <!-- RowsFragment --> |
| 119 | <style name="Widget.Leanback.Rows" > |
| 120 | </style> |
| 121 | |
| 122 | <!-- row view --> |
| 123 | <style name="Widget.Leanback.Row" > |
| 124 | </style> |
| 125 | |
| 126 | <style name="Widget.Leanback.GridItems" /> |
| 127 | |
| 128 | <style name="Widget.Leanback.Headers.VerticalGridView" > |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 129 | <item name="android:paddingStart">?attr/browsePaddingStart</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 130 | <item name="android:clipToPadding">false</item> |
| 131 | <item name="focusOutFront">true</item> |
| 132 | <item name="focusOutEnd">true</item> |
| 133 | <item name="verticalMargin">@dimen/lb_browse_headers_vertical_margin</item> |
| 134 | <item name="android:focusable">true</item> |
| 135 | <item name="android:focusableInTouchMode">true</item> |
| 136 | </style> |
| 137 | |
| 138 | <style name="Widget.Leanback.Header" > |
| 139 | <item name="android:minHeight">@dimen/lb_browse_header_height</item> |
| 140 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Header</item> |
| 141 | <item name="android:singleLine">true</item> |
Qiwen Zhao | 6f53a39 | 2014-09-09 10:01:02 -0700 | [diff] [blame] | 142 | <item name="android:ellipsize">none</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 143 | </style> |
| 144 | |
| 145 | <style name="Widget.Leanback.Rows.VerticalGridView" > |
| 146 | <item name="android:paddingBottom">?attr/browsePaddingBottom</item> |
| 147 | <item name="android:clipToPadding">false</item> |
| 148 | <item name="focusOutFront">true</item> |
| 149 | <item name="focusOutEnd">true</item> |
| 150 | <item name="android:focusable">true</item> |
| 151 | <item name="android:focusableInTouchMode">true</item> |
| 152 | </style> |
| 153 | |
| 154 | <style name="Widget.Leanback.Row.HorizontalGridView"> |
| 155 | <item name="android:clipToPadding">false</item> |
| 156 | <item name="android:focusable">true</item> |
| 157 | <item name="android:focusableInTouchMode">true</item> |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 158 | <item name="android:paddingStart">?attr/browsePaddingStart</item> |
| 159 | <item name="android:paddingEnd">?attr/browsePaddingEnd</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 160 | <item name="android:paddingBottom">@dimen/lb_browse_item_vertical_margin</item> |
| 161 | <item name="android:paddingTop">@dimen/lb_browse_item_vertical_margin</item> |
| 162 | <item name="horizontalMargin">@dimen/lb_browse_item_horizontal_margin</item> |
| 163 | <item name="verticalMargin">@dimen/lb_browse_item_vertical_margin</item> |
| 164 | <item name="focusOutFront">true</item> |
| 165 | <item name="rowHeight">wrap_content</item> |
| 166 | </style> |
| 167 | |
| 168 | <style name="Widget.Leanback.GridItems.VerticalGridView"> |
| 169 | <item name="android:clipToPadding">false</item> |
| 170 | <item name="android:focusable">true</item> |
| 171 | <item name="android:focusableInTouchMode">true</item> |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 172 | <item name="android:paddingStart">?attr/browsePaddingStart</item> |
| 173 | <item name="android:paddingEnd">?attr/browsePaddingEnd</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 174 | <item name="android:paddingBottom">@dimen/lb_vertical_grid_padding_bottom</item> |
| 175 | <item name="android:paddingTop">?attr/browseRowsMarginTop</item> |
| 176 | <item name="android:gravity">center_horizontal</item> |
| 177 | <item name="horizontalMargin">@dimen/lb_browse_item_horizontal_margin</item> |
| 178 | <item name="verticalMargin">@dimen/lb_browse_item_vertical_margin</item> |
| 179 | <item name="columnWidth">wrap_content</item> |
| 180 | <item name="focusOutFront">true</item> |
| 181 | </style> |
| 182 | |
| 183 | <style name="Widget.Leanback.Row.Header" parent="Widget.Leanback.Header"> |
| 184 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.Header</item> |
| 185 | </style> |
| 186 | |
| 187 | <style name="TextAppearance.Leanback.Row.HoverCardTitle" parent="TextAppearance.Leanback"> |
| 188 | <item name="android:textSize">@dimen/lb_browse_row_hovercard_title_font_size</item> |
| 189 | </style> |
| 190 | |
| 191 | <style name="TextAppearance.Leanback.Row.HoverCardDescription" parent="TextAppearance.Leanback"> |
| 192 | <item name="android:textSize">@dimen/lb_browse_row_hovercard_description_font_size</item> |
| 193 | </style> |
| 194 | |
| 195 | <style name="Widget.Leanback.Row.HoverCardTitle" > |
| 196 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.HoverCardTitle</item> |
| 197 | <item name="android:maxWidth">@dimen/lb_browse_row_hovercard_max_width</item> |
| 198 | <item name="android:singleLine">true</item> |
| 199 | <item name="android:ellipsize">end</item> |
| 200 | </style> |
| 201 | |
| 202 | <style name="Widget.Leanback.Row.HoverCardDescription" > |
| 203 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.HoverCardDescription</item> |
| 204 | <item name="android:maxWidth">@dimen/lb_browse_row_hovercard_max_width</item> |
| 205 | <item name="android:ellipsize">end</item> |
| 206 | <item name="android:maxLines">4</item> |
| 207 | </style> |
| 208 | |
| 209 | <style name="Widget.Leanback.DetailsDescriptionTitleStyle"> |
| 210 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionTitle</item> |
| 211 | <item name="android:maxLines">@integer/lb_details_description_title_max_lines</item> |
| 212 | <item name="android:includeFontPadding">false</item> |
| 213 | <item name="android:ellipsize">end</item> |
Qiwen Zhao | a56fdf5 | 2014-12-10 09:01:08 -0800 | [diff] [blame] | 214 | <item name="resizeTrigger">maxLines</item> |
| 215 | <item name="resizedTextSize">@dimen/lb_details_description_title_resized_text_size</item> |
| 216 | <item name="resizedPaddingAdjustmentTop">@dimen/lb_details_description_title_padding_adjust_top</item> |
| 217 | <item name="resizedPaddingAdjustmentBottom">@dimen/lb_details_description_title_padding_adjust_bottom</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 218 | </style> |
| 219 | |
| 220 | <style name="Widget.Leanback.DetailsDescriptionSubtitleStyle"> |
| 221 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionSubtitle</item> |
| 222 | <item name="android:maxLines">@integer/lb_details_description_subtitle_max_lines</item> |
| 223 | <item name="android:includeFontPadding">false</item> |
| 224 | <item name="android:ellipsize">end</item> |
| 225 | </style> |
| 226 | |
| 227 | <style name="Widget.Leanback.DetailsDescriptionBodyStyle"> |
| 228 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionBody</item> |
| 229 | <item name="android:includeFontPadding">false</item> |
| 230 | <item name="android:ellipsize">end</item> |
| 231 | </style> |
| 232 | |
Dharmesh Mokani | 5bef9fe | 2014-08-13 10:10:24 -0700 | [diff] [blame] | 233 | <style name="Widget.Leanback.DetailsActionButtonStyleBase" parent="android:Widget.Holo.Button.Borderless"> |
| 234 | </style> |
| 235 | |
| 236 | <style name="Widget.Leanback.DetailsActionButtonStyle" parent="Widget.Leanback.DetailsActionButtonStyleBase"> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 237 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsActionButton</item> |
| 238 | <item name="android:includeFontPadding">false</item> |
| 239 | <item name="android:drawablePadding">@dimen/lb_action_icon_margin</item> |
| 240 | <item name="android:focusable">true</item> |
| 241 | <item name="android:focusableInTouchMode">true</item> |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 242 | <item name="android:paddingStart">@dimen/lb_action_padding_horizontal</item> |
| 243 | <item name="android:paddingEnd">@dimen/lb_action_padding_horizontal</item> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 244 | </style> |
| 245 | |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 246 | <style name="Widget.Leanback.PlaybackControlsButtonStyle" > |
| 247 | <item name="android:focusable">true</item> |
| 248 | <item name="android:focusableInTouchMode">true</item> |
| 249 | </style> |
| 250 | |
Qiwen Zhao | 5ab314b | 2014-11-12 09:37:55 -0800 | [diff] [blame] | 251 | <style name="Widget.Leanback.PlaybackControlLabelStyle"> |
| 252 | <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackControlLabel</item> |
| 253 | </style> |
| 254 | |
Ying Wang | bb09c25 | 2014-08-05 14:40:52 -0700 | [diff] [blame] | 255 | <style name="Widget.Leanback.PlaybackControlsTimeStyle"> |
| 256 | <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackControlsTime</item> |
| 257 | </style> |
| 258 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 259 | <style name="Widget.Leanback.ErrorMessageStyle"> |
| 260 | <item name="android:textAppearance">@style/TextAppearance.Leanback.ErrorMessage</item> |
| 261 | <item name="android:includeFontPadding">false</item> |
| 262 | <item name="android:maxLines">@integer/lb_error_message_max_lines</item> |
| 263 | <item name="android:ellipsize">end</item> |
| 264 | </style> |
| 265 | |
| 266 | <style name="Widget.Leanback.SearchOrbViewStyle"> |
| 267 | <item name="searchOrbIcon">?attr/defaultSearchIcon</item> |
| 268 | <item name="searchOrbColor">?attr/defaultSearchColor</item> |
| 269 | <item name="searchOrbBrightColor">?attr/defaultSearchBrightColor</item> |
| 270 | </style> |
Dharmesh Mokani | 371b2b6 | 2014-08-07 22:07:03 -0700 | [diff] [blame] | 271 | |
| 272 | <style name="Widget.Leanback.PlaybackControlsActionIconsStyle"> |
| 273 | <item name="play">@drawable/lb_ic_play</item> |
| 274 | <item name="pause">@drawable/lb_ic_pause</item> |
| 275 | <item name="fast_forward">@drawable/lb_ic_fast_forward</item> |
| 276 | <item name="rewind">@drawable/lb_ic_fast_rewind</item> |
| 277 | <item name="skip_next">@drawable/lb_ic_skip_next</item> |
| 278 | <item name="skip_previous">@drawable/lb_ic_skip_previous</item> |
| 279 | <item name="thumb_up_outline">@drawable/lb_ic_thumb_up_outline</item> |
| 280 | <item name="thumb_up">@drawable/lb_ic_thumb_up</item> |
| 281 | <item name="thumb_down_outline">@drawable/lb_ic_thumb_down_outline</item> |
| 282 | <item name="thumb_down">@drawable/lb_ic_thumb_down</item> |
| 283 | <item name="repeat">@drawable/lb_ic_loop</item> |
| 284 | <item name="repeat_one">@drawable/lb_ic_loop_one</item> |
| 285 | <item name="shuffle">@drawable/lb_ic_shuffle</item> |
| 286 | <item name="high_quality">@drawable/lb_ic_hq</item> |
| 287 | <item name="closed_captioning">@drawable/lb_ic_cc</item> |
| 288 | </style> |
| 289 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 290 | </resources> |