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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="@dimen/dvr_schedules_item_width" 19 android:layout_height="wrap_content" 20 android:paddingRight="@dimen/dvr_schedules_layout_padding" 21 android:paddingLeft="@dimen/dvr_schedules_layout_padding" 22 android:layout_marginTop="@dimen/dvr_schedules_header_margin_top" 23 android:layout_marginBottom="@dimen/dvr_schedules_header_margin_bottom"> 24 25 <RelativeLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent"> 28 <LinearLayout 29 android:orientation="vertical" 30 android:layout_width="wrap_content" 31 android:layout_height="match_parent" 32 android:layout_alignParentStart="true" 33 android:layout_toStartOf="@+id/button_container"> 34 <TextView android:id="@+id/header_title" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:ellipsize="end" 38 android:singleLine="true" 39 android:textSize="20sp" 40 android:textColor="@color/dvr_schedules_item_main"/> 41 <TextView android:id="@+id/header_description" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="@dimen/dvr_schedules_header_subtitle_margin_top" 45 android:ellipsize="end" 46 android:singleLine="true" 47 android:textSize="14sp" 48 android:textColor="@color/dvr_schedules_header_description"/> 49 </LinearLayout> 50 51 <FrameLayout android:id="@id/button_container" 52 android:layout_width="wrap_content" 53 android:layout_height="match_parent" 54 android:layout_alignParentEnd="true" 55 android:visibility="gone"> 56 <com.android.tv.dvr.ui.list.DvrSchedulesFocusView 57 android:id="@+id/selector" 58 android:tag="@string/dvr_schedules_header_focus_view" 59 android:layout_width="0dp" 60 android:layout_height="match_parent" 61 android:alpha="0"/> 62 <LinearLayout 63 android:layout_width="wrap_content" 64 android:layout_height="match_parent" 65 android:orientation="horizontal"> 66 <include android:id="@+id/series_settings" 67 layout="@layout/dvr_schedules_header_button" /> 68 <include android:id="@+id/series_toggle_start_stop" 69 layout="@layout/dvr_schedules_header_button" /> 70 </LinearLayout> 71 </FrameLayout> 72 </RelativeLayout> 73</LinearLayout>