Tim Kilbourn | 7fbbc85 | 2014-02-18 10:26:40 -0800 | [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 | |
Craig Stout | 47520b6 | 2014-03-11 05:50:23 -0700 | [diff] [blame] | 18 | <resources xmlns:android="http://schemas.android.com/apk/res/android"> |
Tim Kilbourn | 7fbbc85 | 2014-02-18 10:26:40 -0800 | [diff] [blame] | 19 | <style name="TextAppearance.Leanback" parent="android:TextAppearance.Holo"> |
| 20 | <!-- Any text appearance overrides go here. --> |
Dake Gu | f804d90 | 2014-03-18 18:04:57 -0700 | [diff] [blame] | 21 | <item name="android:fontFamily">sans-serif-condensed</item> |
Tim Kilbourn | 7fbbc85 | 2014-02-18 10:26:40 -0800 | [diff] [blame] | 22 | </style> |
| 23 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 24 | <style name="TextAppearance.Leanback.Title" parent="TextAppearance.Leanback"> |
Craig Stout | 4cf79b1 | 2014-05-13 16:56:58 -0700 | [diff] [blame] | 25 | <item name="android:fontFamily">sans-serif-condensed-light</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 26 | <item name="android:textSize">@dimen/lb_browse_title_text_size</item> |
| 27 | <item name="android:textColor">@color/lb_browse_title_color</item> |
| 28 | </style> |
| 29 | |
| 30 | <style name="TextAppearance.Leanback.Row.Header" parent="TextAppearance.Leanback"> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 31 | <item name="android:textSize">@dimen/lb_browse_row_header_text_size</item> |
| 32 | <item name="android:textColor">@color/lb_browse_header_color</item> |
| 33 | </style> |
Tim Kilbourn | 7fbbc85 | 2014-02-18 10:26:40 -0800 | [diff] [blame] | 34 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 35 | <style name="TextAppearance.Leanback.Header" parent="TextAppearance.Leanback"> |
| 36 | <item name="android:textAllCaps">true</item> |
| 37 | <item name="android:textSize">@dimen/lb_browse_header_text_size</item> |
Dake Gu | f804d90 | 2014-03-18 18:04:57 -0700 | [diff] [blame] | 38 | </style> |
| 39 | |
Jerome Poichet | 3c2998d | 2014-03-28 15:43:26 -0700 | [diff] [blame] | 40 | <style name="TextAppearance.Leanback.SearchTextEdit" parent="TextAppearance.Leanback"> |
Jerome Poichet | 3c2998d | 2014-03-28 15:43:26 -0700 | [diff] [blame] | 41 | <item name="android:textSize">@dimen/lb_search_bar_text_size</item> |
| 42 | </style> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 43 | |
Tim Kilbourn | e652714 | 2014-03-28 11:00:42 -0700 | [diff] [blame] | 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> |
Craig Stout | d2c235a | 2014-05-16 13:59:26 -0700 | [diff] [blame^] | 47 | <item name="android:fontFamily">sans-serif</item> |
Tim Kilbourn | e652714 | 2014-03-28 11:00: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> |
Craig Stout | d2c235a | 2014-05-16 13:59:26 -0700 | [diff] [blame^] | 53 | <item name="android:fontFamily">sans-serif</item> |
Tim Kilbourn | e652714 | 2014-03-28 11:00:42 -0700 | [diff] [blame] | 54 | </style> |
| 55 | |
| 56 | <style name="TextAppearance.Leanback.DetailsDescriptionBody"> |
| 57 | <item name="android:textSize">@dimen/lb_details_description_body_text_size</item> |
| 58 | <item name="android:textColor">@color/lb_details_description_color</item> |
| 59 | <item name="android:fontFamily">sans-serif</item> |
| 60 | </style> |
| 61 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 62 | <style name="Widget.Leanback" parent="android:Widget.Holo" /> |
| 63 | |
Tim Kilbourn | b55f088 | 2014-04-05 01:21:30 -0700 | [diff] [blame] | 64 | <style name="Widget.Leanback.BaseCardViewStyle" /> |
| 65 | |
| 66 | <style name="Widget.Leanback.ImageCardViewStyle" parent="Widget.Leanback.BaseCardViewStyle"> |
| 67 | <item name="cardType">infoUnder</item> |
| 68 | <item name="infoVisibility">activated</item> |
| 69 | <item name="android:background">@color/lb_basic_card_bg_color</item> |
| 70 | </style> |
| 71 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 72 | <style name="Widget.Leanback.Title" /> |
| 73 | |
| 74 | <style name="Widget.Leanback.Title.Text"> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 75 | <item name="android:singleLine">true</item> |
Craig Stout | 4cf79b1 | 2014-05-13 16:56:58 -0700 | [diff] [blame] | 76 | <item name="android:gravity">right</item> |
| 77 | <item name="android:ellipsize">end</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 78 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Title</item> |
| 79 | </style> |
| 80 | |
| 81 | <style name="Widget.Leanback.Title.Icon"> |
Craig Stout | 31356ff | 2014-04-15 14:24:36 -0700 | [diff] [blame] | 82 | <item name="android:scaleType">centerInside</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 83 | </style> |
| 84 | |
Dake Gu | 42e4e84 | 2014-05-12 12:20:39 -0700 | [diff] [blame] | 85 | <!-- HeadersFragment --> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 86 | <style name="Widget.Leanback.Headers" /> |
| 87 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 88 | <!-- RowsFragment --> |
| 89 | <style name="Widget.Leanback.Rows" > |
| 90 | </style> |
| 91 | |
| 92 | <!-- row view --> |
| 93 | <style name="Widget.Leanback.Row" > |
| 94 | </style> |
| 95 | |
Craig Stout | 739e380 | 2014-04-07 12:10:51 -0700 | [diff] [blame] | 96 | <style name="Widget.Leanback.GridItems" /> |
| 97 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 98 | <style name="Widget.Leanback.Headers.VerticalGridView" > |
| 99 | <item name="android:paddingLeft">?attr/browsePaddingLeft</item> |
| 100 | <item name="android:clipToPadding">false</item> |
| 101 | <item name="focusOutFront">true</item> |
| 102 | <item name="focusOutEnd">true</item> |
Dake Gu | 3c23ada | 2014-04-18 14:08:05 -0700 | [diff] [blame] | 103 | <item name="verticalMargin">@dimen/lb_browse_headers_vertical_margin</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 104 | <item name="android:focusable">true</item> |
| 105 | <item name="android:focusableInTouchMode">true</item> |
| 106 | </style> |
| 107 | |
| 108 | <style name="Widget.Leanback.Header" > |
| 109 | <item name="android:gravity">center_vertical</item> |
| 110 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Header</item> |
| 111 | <item name="android:singleLine">true</item> |
| 112 | <item name="android:focusable">true</item> |
| 113 | <item name="android:focusableInTouchMode">true</item> |
| 114 | </style> |
| 115 | |
| 116 | <style name="Widget.Leanback.Rows.VerticalGridView" > |
| 117 | <item name="android:paddingBottom">?attr/browsePaddingBottom</item> |
| 118 | <item name="android:clipToPadding">false</item> |
| 119 | <item name="focusOutFront">true</item> |
| 120 | <item name="focusOutEnd">true</item> |
| 121 | <item name="android:focusable">true</item> |
| 122 | <item name="android:focusableInTouchMode">true</item> |
| 123 | </style> |
| 124 | |
| 125 | <style name="Widget.Leanback.Row.HorizontalGridView"> |
| 126 | <item name="android:clipToPadding">false</item> |
| 127 | <item name="android:focusable">true</item> |
| 128 | <item name="android:focusableInTouchMode">true</item> |
| 129 | <item name="android:paddingLeft">?attr/browsePaddingLeft</item> |
| 130 | <item name="android:paddingRight">?attr/browsePaddingRight</item> |
| 131 | <item name="android:paddingBottom">@dimen/lb_browse_item_margin_vertical</item> |
| 132 | <item name="android:paddingTop">@dimen/lb_browse_item_margin_vertical</item> |
| 133 | <item name="horizontalMargin">@dimen/lb_browse_item_margin</item> |
| 134 | <item name="verticalMargin">@dimen/lb_browse_item_margin</item> |
| 135 | <item name="focusOutFront">true</item> |
Craig Stout | f272f75 | 2014-04-25 16:13:25 -0700 | [diff] [blame] | 136 | <item name="rowHeight">wrap_content</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 137 | </style> |
| 138 | |
Craig Stout | 739e380 | 2014-04-07 12:10:51 -0700 | [diff] [blame] | 139 | <style name="Widget.Leanback.GridItems.VerticalGridView"> |
| 140 | <item name="android:clipToPadding">false</item> |
| 141 | <item name="android:focusable">true</item> |
| 142 | <item name="android:focusableInTouchMode">true</item> |
| 143 | <item name="android:paddingLeft">?attr/browsePaddingLeft</item> |
| 144 | <item name="android:paddingRight">?attr/browsePaddingRight</item> |
| 145 | <item name="android:paddingBottom">@dimen/lb_browse_item_margin_vertical</item> |
Dake Gu | e34cae4 | 2014-05-01 16:52:53 -0700 | [diff] [blame] | 146 | <item name="android:paddingTop">?attr/browseRowsMarginTop</item> |
Dake Gu | 01ce047 | 2014-05-02 18:12:32 -0700 | [diff] [blame] | 147 | <item name="android:gravity">center_horizontal</item> |
Craig Stout | 739e380 | 2014-04-07 12:10:51 -0700 | [diff] [blame] | 148 | <item name="horizontalMargin">@dimen/lb_browse_item_margin</item> |
| 149 | <item name="verticalMargin">@dimen/lb_browse_item_margin</item> |
| 150 | <item name="focusOutFront">true</item> |
| 151 | </style> |
| 152 | |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 153 | <style name="Widget.Leanback.Row.Header"> |
| 154 | <item name="android:minHeight">@dimen/lb_browse_row_title_height</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 155 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.Header</item> |
Craig Stout | 4cf79b1 | 2014-05-13 16:56:58 -0700 | [diff] [blame] | 156 | <item name="android:singleLine">true</item> |
| 157 | <item name="android:ellipsize">marquee</item> |
| 158 | <item name="android:marqueeRepeatLimit">0</item> |
| 159 | <item name="android:paddingRight">@dimen/lb_browse_row_title_padding_right</item> |
Dake Gu | 8fac655 | 2014-04-01 11:57:51 -0700 | [diff] [blame] | 160 | </style> |
| 161 | |
| 162 | <style name="TextAppearance.Leanback.Row.HoverCardTitle" parent="TextAppearance.Leanback"> |
| 163 | <item name="android:textSize">@dimen/lb_browse_row_hovercard_title_font_size</item> |
| 164 | </style> |
| 165 | |
| 166 | <style name="TextAppearance.Leanback.Row.HoverCardDescription" parent="TextAppearance.Leanback"> |
| 167 | <item name="android:textSize">@dimen/lb_browse_row_hovercard_description_font_size</item> |
| 168 | </style> |
| 169 | |
| 170 | <style name="Widget.Leanback.Row.HoverCardTitle" > |
| 171 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.HoverCardTitle</item> |
| 172 | <item name="android:maxWidth">@dimen/lb_browse_row_hovercard_max_width</item> |
| 173 | <item name="android:singleLine">true</item> |
| 174 | <item name="android:ellipsize">end</item> |
| 175 | </style> |
| 176 | |
| 177 | <style name="Widget.Leanback.Row.HoverCardDescription" > |
| 178 | <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.HoverCardDescription</item> |
| 179 | <item name="android:maxWidth">@dimen/lb_browse_row_hovercard_max_width</item> |
| 180 | <item name="android:ellipsize">end</item> |
| 181 | <item name="android:maxLines">2</item> |
| 182 | </style> |
| 183 | |
Tim Kilbourn | e652714 | 2014-03-28 11:00:42 -0700 | [diff] [blame] | 184 | <style name="Widget.Leanback.DetailsDescriptionTitleStyle"> |
| 185 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionTitle</item> |
| 186 | <item name="android:maxLines">@integer/lb_details_description_title_max_lines</item> |
Craig Stout | d2c235a | 2014-05-16 13:59:26 -0700 | [diff] [blame^] | 187 | <item name="android:includeFontPadding">false</item> |
Tim Kilbourn | e652714 | 2014-03-28 11:00:42 -0700 | [diff] [blame] | 188 | </style> |
| 189 | |
| 190 | <style name="Widget.Leanback.DetailsDescriptionSubtitleStyle"> |
| 191 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionSubtitle</item> |
| 192 | <item name="android:maxLines">@integer/lb_details_description_subtitle_max_lines</item> |
Craig Stout | d2c235a | 2014-05-16 13:59:26 -0700 | [diff] [blame^] | 193 | <item name="android:includeFontPadding">false</item> |
Tim Kilbourn | e652714 | 2014-03-28 11:00:42 -0700 | [diff] [blame] | 194 | </style> |
| 195 | |
| 196 | <style name="Widget.Leanback.DetailsDescriptionBodyStyle"> |
| 197 | <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionBody</item> |
| 198 | <item name="android:maxLines">@integer/lb_details_description_body_max_lines</item> |
| 199 | </style> |
Tim Kilbourn | 7fbbc85 | 2014-02-18 10:26:40 -0800 | [diff] [blame] | 200 | </resources> |