diff options
Diffstat (limited to 'samples/SupportLeanbackShowcase/app/src/main/res/layout/side_info_card.xml')
-rw-r--r-- | samples/SupportLeanbackShowcase/app/src/main/res/layout/side_info_card.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/samples/SupportLeanbackShowcase/app/src/main/res/layout/side_info_card.xml b/samples/SupportLeanbackShowcase/app/src/main/res/layout/side_info_card.xml new file mode 100644 index 000000000..725af09fb --- /dev/null +++ b/samples/SupportLeanbackShowcase/app/src/main/res/layout/side_info_card.xml @@ -0,0 +1,64 @@ +<?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. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:lb="http://schemas.android.com/apk/res-auto" + android:id="@+id/container" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/main_image" + android:layout_width="144dp" + android:layout_height="144dp" + lb:layout_viewType="main" + /> + + <LinearLayout + android:id="@+id/info" + android:layout_width="144dp" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="11dp" + android:paddingRight="11dp" + android:paddingTop="7dp" + android:background="@color/default_card_footer_background_color"> + + <TextView + android:id="@+id/primary_text" + style="@style/Widget.Leanback.ImageCardView.TitleStyle" + android:fontFamily="sans-serif-condensed" + android:maxLines="2" + android:textSize="16sp"/> + + <TextView + android:id="@+id/secondary_text" + style="@style/Widget.Leanback.ImageCardView.ContentStyle" + android:layout_marginTop="4dp" + android:fontFamily="sans-serif-condensed" + android:maxLines="1" + android:textColor="#EEEEEE"/> + + <TextView + android:id="@+id/extra_text" + style="@style/Widget.Leanback.ImageCardView.ContentStyle" + android:layout_marginTop="6dp" + android:fontFamily="sans-serif-condensed" + android:maxLines="5"/> + </LinearLayout> +</LinearLayout>
\ No newline at end of file |