summaryrefslogtreecommitdiffstats
path: root/samples/SupportLeanbackShowcase/app/src/main/res/layout/text_icon_card.xml
diff options
context:
space:
mode:
Diffstat (limited to 'samples/SupportLeanbackShowcase/app/src/main/res/layout/text_icon_card.xml')
-rw-r--r--samples/SupportLeanbackShowcase/app/src/main/res/layout/text_icon_card.xml79
1 files changed, 79 insertions, 0 deletions
diff --git a/samples/SupportLeanbackShowcase/app/src/main/res/layout/text_icon_card.xml b/samples/SupportLeanbackShowcase/app/src/main/res/layout/text_icon_card.xml
new file mode 100644
index 000000000..339549a07
--- /dev/null
+++ b/samples/SupportLeanbackShowcase/app/src/main/res/layout/text_icon_card.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:lb="http://schemas.android.com/apk/res-auto"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/extra_text"
+ style="@style/Widget.Leanback.ImageCardView.ContentStyle"
+ android:layout_width="256dp"
+ android:layout_height="wrap_content"
+ android:background="@color/default_card_background_color"
+ android:fontFamily="sans-serif-condensed"
+ android:lines="7"
+ android:maxLines="7"
+ android:paddingBottom="14dp"
+ android:paddingLeft="15dp"
+ android:paddingRight="15dp"
+ android:paddingTop="12dp"
+ lb:layout_viewType="main"/>
+
+ <android.support.v17.leanback.widget.NonOverlappingRelativeLayout
+ android:layout_width="256dp"
+ android:layout_height="36dp"
+ android:background="@color/default_card_footer_background_color"
+ android:gravity="left"
+ android:orientation="horizontal"
+ android:paddingBottom="7dp"
+ android:paddingLeft="12dp"
+ android:paddingRight="12dp"
+ android:paddingTop="7dp">
+
+ <ImageView
+ android:id="@+id/main_image"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:layout_centerVertical="true"
+ android:layout_gravity="center_vertical"
+ android:layout_marginRight="8dp"
+ android:adjustViewBounds="true"/>
+
+ <TextView
+ android:id="@+id/primary_text"
+ style="@style/Widget.Leanback.ImageCardView.TitleStyle"
+ android:layout_width="match_parent"
+ android:layout_centerVertical="true"
+ android:layout_gravity="left"
+ android:layout_toRightOf="@+id/main_image"
+ android:fontFamily="sans-serif-condensed"
+ android:maxLines="1"
+ />
+
+ <ImageView
+ android:id="@+id/footer_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="32dp"
+ android:layout_alignParentEnd="true"
+ android:layout_centerVertical="true"
+ android:layout_gravity="center_vertical"
+ android:adjustViewBounds="true"
+ android:src="@drawable/stars_white"/>
+
+ </android.support.v17.leanback.widget.NonOverlappingRelativeLayout>
+</merge> \ No newline at end of file