• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 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<!-- The background of header_column will be programmatically changed
19     in order to support rounded corners. -->
20<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/header_column"
22    android:layout_width="@dimen/program_guide_table_header_column_width"
23    android:layout_height="match_parent"
24    android:paddingStart="@dimen/program_guide_table_header_column_padding_start"
25    android:paddingEnd="@dimen/program_guide_table_header_column_padding_end">
26
27    <!-- The top margin is set to ensure input logo is in the same height as channel number.
28         Center gravity doesn't work when the row is selected. -->
29    <ImageView
30        android:id="@+id/input_logo"
31        android:layout_width="@dimen/program_guide_table_header_column_input_logo_width"
32        android:layout_height="@dimen/program_guide_table_header_column_input_logo_height"
33        android:layout_marginTop="@dimen/program_guide_table_header_column_input_logo_margin_top"
34        android:scaleType="fitCenter"
35        android:visibility="gone" />
36
37    <TextView
38        android:id="@+id/channel_number"
39        android:layout_width="@dimen/program_guide_table_header_column_channel_number_width"
40        android:layout_height="@dimen/program_guide_table_item_row_height"
41        android:layout_marginStart="@dimen/program_guide_table_header_column_channel_number_margin_start"
42        android:gravity="start|center_vertical"
43        android:fontFamily="@string/light_font"
44        android:textSize="@dimen/program_guide_table_header_column_channel_number_large_font_size"
45        android:textColor="@color/program_guide_table_header_column_channel_number_text_color" />
46
47    <TextView
48        android:id="@+id/channel_name"
49        android:layout_width="@dimen/program_guide_table_header_column_channel_name_width"
50        android:layout_height="@dimen/program_guide_table_item_row_height"
51        android:layout_marginStart="@dimen/program_guide_table_header_column_channel_name_margin_start"
52        android:gravity="start|center_vertical"
53        android:fontFamily="@string/condensed_font"
54        android:textSize="@dimen/program_guide_table_header_column_channel_name_font_size"
55        android:textColor="@color/program_guide_table_header_column_channel_name_text_color"
56        android:lineSpacingExtra="3.5sp" />
57
58    <ImageView
59        android:id="@+id/channel_logo"
60        android:layout_width="@dimen/program_guide_table_header_column_channel_logo_width"
61        android:layout_height="@dimen/program_guide_table_header_column_channel_logo_height"
62        android:layout_marginTop="@dimen/program_guide_table_header_column_channel_logo_margin_top"
63        android:layout_marginStart="@dimen/program_guide_table_header_column_channel_name_margin_start"
64        android:scaleType="fitStart"
65        android:visibility="gone" />
66
67    <ImageView
68        android:id="@+id/channel_block"
69        android:layout_width="@dimen/program_guide_table_header_column_channel_block_width"
70        android:layout_height="@dimen/program_guide_table_header_column_channel_block_height"
71        android:layout_marginTop="@dimen/program_guide_table_header_column_channel_block_margin_top"
72        android:layout_marginStart="@dimen/program_guide_table_header_column_channel_name_margin_start"
73        android:scaleType="center"
74        android:src="@drawable/ic_guide_lock"
75        android:alpha="@dimen/program_guide_table_header_column_channel_block_opacity"
76        android:visibility="visible" />
77
78</FrameLayout>
79