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 | <merge |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | xmlns:lb="http://schemas.android.com/apk/res-auto"> |
| 21 | |
| 22 | <ImageView |
| 23 | android:id="@+id/main_image" |
| 24 | lb:layout_viewType="main" |
| 25 | android:layout_width="wrap_content" |
| 26 | android:layout_height="wrap_content" |
| 27 | android:scaleType="centerCrop" |
| 28 | android:adjustViewBounds="true" |
| 29 | android:contentDescription="@null" /> |
Qiwen Zhao | dd1e888 | 2014-09-17 08:32:09 -0700 | [diff] [blame] | 30 | <android.support.v17.leanback.widget.NonOverlappingFrameLayout |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
| 33 | lb:layout_viewType="info" > |
| 34 | <RelativeLayout |
| 35 | android:id="@+id/info_field" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="@dimen/lb_basic_card_info_height" |
| 38 | android:padding="@dimen/lb_basic_card_info_padding" |
| 39 | android:layout_centerHorizontal="true" > |
| 40 | <TextView |
| 41 | android:id="@+id/title_text" |
| 42 | android:layout_width="match_parent" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_alignParentStart="true" |
| 45 | android:layout_marginTop="@dimen/lb_basic_card_info_text_margin" |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 46 | android:layout_marginStart="@dimen/lb_basic_card_info_text_margin" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 47 | android:maxLines="1" |
| 48 | android:fontFamily="sans-serif-condensed" |
| 49 | android:textColor="@color/lb_basic_card_title_text_color" |
| 50 | android:textSize="@dimen/lb_basic_card_title_text_size" |
| 51 | android:ellipsize="end" /> |
| 52 | <TextView |
| 53 | android:id="@+id/content_text" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 56 | android:layout_alignParentStart="true" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 57 | android:layout_alignParentBottom="true" |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 58 | android:layout_marginStart="@dimen/lb_basic_card_info_text_margin" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 59 | android:layout_marginBottom="@dimen/lb_basic_card_info_text_margin" |
| 60 | android:maxLines="1" |
| 61 | android:fontFamily="sans-serif-condensed" |
| 62 | android:textColor="@color/lb_basic_card_content_text_color" |
| 63 | android:textSize="@dimen/lb_basic_card_content_text_size" |
| 64 | android:ellipsize="none" /> |
| 65 | <ImageView |
| 66 | android:id="@+id/extra_badge" |
| 67 | android:layout_width="@dimen/lb_basic_card_info_badge_size" |
| 68 | android:layout_height="@dimen/lb_basic_card_info_badge_size" |
| 69 | android:layout_alignParentBottom="true" |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 70 | android:layout_alignParentEnd="true" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 71 | android:scaleType="fitCenter" |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 72 | android:visibility="gone" |
| 73 | android:contentDescription="@null" /> |
| 74 | <ImageView |
| 75 | android:id="@+id/fade_mask" |
| 76 | android:src="@drawable/lb_ic_card_info_text_fade" |
| 77 | android:layout_width="wrap_content" |
| 78 | android:layout_height="@dimen/lb_basic_card_info_badge_size" |
| 79 | android:layout_alignParentBottom="true" |
| 80 | android:layout_toStartOf="@id/extra_badge" |
| 81 | android:scaleType="fitCenter" |
| 82 | android:visibility="gone" |
| 83 | android:contentDescription="@null" /> |
| 84 | </RelativeLayout> |
Qiwen Zhao | dd1e888 | 2014-09-17 08:32:09 -0700 | [diff] [blame] | 85 | </android.support.v17.leanback.widget.NonOverlappingFrameLayout> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 86 | </merge> |