<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2016 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"
android:layout_width="@dimen/dvr_schedules_item_width"
android:layout_height="wrap_content"
android:paddingRight="@dimen/dvr_schedules_layout_padding"
android:paddingLeft="@dimen/dvr_schedules_layout_padding"
android:layout_marginTop="@dimen/dvr_schedules_header_margin_top"
android:layout_marginBottom="@dimen/dvr_schedules_header_margin_bottom">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/button_container">
<TextView android:id="@+id/header_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:singleLine="true"
android:textSize="20sp"
android:textColor="@color/dvr_schedules_item_main"/>
<TextView android:id="@+id/header_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dvr_schedules_header_subtitle_margin_top"
android:ellipsize="end"
android:singleLine="true"
android:textSize="14sp"
android:textColor="@color/dvr_schedules_header_description"/>
</LinearLayout>
<FrameLayout android:id="@id/button_container"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:visibility="gone">
<com.android.tv.dvr.ui.list.DvrSchedulesFocusView
android:id="@+id/selector"
android:tag="@string/dvr_schedules_header_focus_view"
android:layout_width="0dp"
android:layout_height="match_parent"
android:alpha="0"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal">
<include android:id="@+id/series_settings"
layout="@layout/dvr_schedules_header_button" />
<include android:id="@+id/series_toggle_start_stop"
layout="@layout/dvr_schedules_header_button" />
</LinearLayout>
</FrameLayout>
</RelativeLayout>
</LinearLayout>