blob: 3f105fe3c9abdb55b9ce2fa54a4d6de0e8d98b88 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2015 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.
-->
<!-- All info banners have the same id for use by TvTransitionManager. -->
<com.android.tv.ui.ChannelBannerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scene_transition_common"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="27dp"
android:layout_marginStart="132dp"
android:layout_marginEnd="132dp"
android:background="@drawable/info_banner_background"
android:elevation="8dp" >
<RelativeLayout android:id="@+id/channel_banner_view"
android:orientation="vertical"
android:layout_width="@dimen/channel_banner_width"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingStart="16dp"
android:paddingEnd="32dp"
android:clipToPadding="false"
android:visibility="gone" >
<TextView android:id="@+id/channel_number"
android:layout_width="112dp"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginTop="@dimen/channel_banner_channel_number_large_margin_top"
android:textColor="@color/channel_banner_text_color"
android:fontFamily="@string/thin_font"
android:textSize="@dimen/channel_banner_channel_number_large_text_size" />
<ImageView android:id="@+id/channel_logo"
android:layout_width="@dimen/channel_banner_channel_logo_width"
android:layout_height="@dimen/channel_banner_channel_logo_height"
android:layout_marginStart="@dimen/channel_banner_channel_logo_margin_start"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true" />
<TextView android:id="@+id/program_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/channel_banner_program_large_margin_top"
android:layout_alignParentTop="true"
android:layout_toEndOf="@id/channel_number"
android:layout_toStartOf="@id/channel_logo"
android:maxLines="2"
android:lineSpacingExtra="0.5sp"
android:ellipsize="end"
android:textColor="@color/channel_banner_text_color"
android:fontFamily="@string/light_font"
android:textSize="@dimen/channel_banner_program_large_text_size" />
<Space android:id="@+id/anchor"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="@dimen/channel_banner_anchor_one_line_y"
android:layout_marginBottom="16dp"
android:layout_alignParentTop="true"
android:layout_toEndOf="@id/channel_number" />
<ImageView android:id="@+id/tvinput_logo"
android:layout_width="@dimen/channel_banner_input_logo_size"
android:layout_height="@dimen/channel_banner_input_logo_size"
android:layout_marginEnd="8dp"
android:layout_marginBottom="-2dp"
android:layout_alignBottom="@id/anchor"
android:layout_toEndOf="@id/anchor"
android:visibility="gone" />
<TextView android:id="@+id/channel_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_marginBottom="-4sp"
android:layout_alignBottom="@id/anchor"
android:layout_toEndOf="@id/tvinput_logo"
android:singleLine="true"
android:ellipsize="end"
android:maxWidth="@dimen/channel_name_max_width"
android:textColor="@color/channel_banner_text_color"
android:fontFamily="@string/condensed_font"
android:textSize="@dimen/channel_banner_small_text_size" />
<TextView android:id="@+id/program_time_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_alignBottom="@id/channel_name"
android:layout_toEndOf="@id/channel_name"
android:textColor="@color/channel_banner_dim_text_color"
android:fontFamily="@string/condensed_font"
android:textSize="@dimen/channel_banner_small_text_size" />
<TextView android:id="@+id/recording_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_alignBottom="@id/channel_name"
android:layout_toEndOf="@id/program_time_text"
android:drawableStart="@drawable/ic_recording_program"
android:textColor="@color/channel_banner_dim_text_color"
android:fontFamily="@string/condensed_font"
android:textSize="@dimen/channel_banner_small_text_size" />
<ProgressBar
android:id="@+id/remaining_time"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="60dp"
android:layout_height="4dp"
android:layout_alignBottom="@id/anchor"
android:layout_toEndOf="@id/recording_indicator"
android:layout_marginEnd="12dp"
android:layout_marginBottom="0.5dp"
android:mirrorForRtl="false"
android:progressDrawable="@drawable/progress_horizontal"
android:indeterminate="false"
android:max="100" />
<include layout="@layout/program_track_meta"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/anchor"
android:layout_toEndOf="@id/remaining_time" />
<TextView android:id="@+id/program_description"
android:layout_width="@dimen/channel_banner_program_description_width"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/channel_number"
android:layout_below="@id/anchor"
android:layout_marginTop="-9dp"
android:layout_marginBottom="12.5dp"
android:maxLines="3"
android:lineSpacingExtra="3sp"
android:ellipsize="end"
android:textColor="@color/channel_banner_dim_text_color"
android:textSize="12sp" />
</RelativeLayout>
</com.android.tv.ui.ChannelBannerView>