blob: 38cfd4bdef008e78a0cd920d338d7696ecbf44d0 [file] [log] [blame]
Ying Wang1ee37af2014-07-14 17:26:42 -07001<?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 Zhaodd1e8882014-09-17 08:32:09 -070030 <android.support.v17.leanback.widget.NonOverlappingFrameLayout
Ying Wang1ee37af2014-07-14 17:26:42 -070031 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 Wang1ee37af2014-07-14 17:26:42 -070036 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 Zhao680a2852014-11-25 15:15:27 -080046 android:layout_marginStart="@dimen/lb_basic_card_info_text_margin"
Ying Wang1ee37af2014-07-14 17:26:42 -070047 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 Zhao680a2852014-11-25 15:15:27 -080056 android:layout_alignParentStart="true"
Ying Wang1ee37af2014-07-14 17:26:42 -070057 android:layout_alignParentBottom="true"
Qiwen Zhao680a2852014-11-25 15:15:27 -080058 android:layout_marginStart="@dimen/lb_basic_card_info_text_margin"
Ying Wang1ee37af2014-07-14 17:26:42 -070059 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 Zhao680a2852014-11-25 15:15:27 -080070 android:layout_alignParentEnd="true"
Ying Wang1ee37af2014-07-14 17:26:42 -070071 android:scaleType="fitCenter"
Ying Wang1ee37af2014-07-14 17:26:42 -070072 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 Zhaodd1e8882014-09-17 08:32:09 -070085 </android.support.v17.leanback.widget.NonOverlappingFrameLayout>
Ying Wang1ee37af2014-07-14 17:26:42 -070086</merge>