aboutsummaryrefslogtreecommitdiff
path: root/res/layout/dvr_schedules_header.xml
blob: 0a643bef4a230820a4c5f47bd77a7ae801a9f1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?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>