1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2016 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:orientation="vertical" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content"> 22 23 <!-- Top margins are set programatically --> 24 <android.support.v17.leanback.widget.ResizingTextView 25 android:id="@+id/dvr_details_description_title" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:paddingLeft="12dp" 29 android:paddingRight="12dp" 30 style="?attr/detailsDescriptionTitleStyle" /> 31 32 <TextView android:id="@+id/dvr_details_description_subtitle" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:paddingLeft="12dp" 36 android:paddingRight="12dp" 37 style="?attr/detailsDescriptionSubtitleStyle" /> 38 39 <LinearLayout android:id="@+id/dvr_details_description_container" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:orientation="vertical" 43 android:background="?android:attr/selectableItemBackground"> 44 45 <LinearLayout android:id="@+id/dvr_details_description_error_message" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:orientation="horizontal" 49 android:visibility="gone"> 50 51 <ImageView android:layout_width="30dp" 52 android:layout_height="27dp" 53 android:paddingTop="9dp" 54 android:paddingLeft="12dp" 55 android:src="@drawable/ic_error_outline_pink_24dp"/> 56 57 <TextView android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:paddingTop="9dp" 60 android:paddingRight="12dp" 61 android:textColor="@color/dvr_recording_failed_text_color" 62 android:text="@string/dvr_recording_failed" 63 style="?attr/detailsDescriptionBodyStyle" /> 64 </LinearLayout> 65 66 <TextView android:id="@+id/dvr_details_description_body" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:paddingTop="9dp" 70 android:paddingLeft="12dp" 71 android:paddingRight="12dp" 72 style="?attr/detailsDescriptionBodyStyle" /> 73 74 <TextView android:id="@+id/dvr_details_description_read_more" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:visibility="gone" 78 android:text="@string/dvr_detail_read_more" 79 android:textColor="@color/lb_details_description_color" 80 android:textSize="16sp" 81 android:height="29dp" 82 android:layout_marginTop="3dp" 83 android:paddingLeft="12dp" 84 android:paddingRight="12dp" 85 android:paddingBottom="9dp" 86 android:textAllCaps="true" /> 87 88 </LinearLayout> 89</LinearLayout>