blob: 9afc5f3dfa8477a5b17537915cfc2dcc00748d2e [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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tv="http://schemas.android.com/apk/res-auto"
android:id="@+id/play_controls"
style="@style/menu_row_contents_view"
android:layoutDirection="ltr">
<TextView
android:id="@+id/time_text"
android:layout_width="@dimen/play_controls_time_width"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignStart="@+id/body"
android:layout_marginBottom="@dimen/play_controls_time_bottom_margin"
android:gravity="center"
android:maxLines="1"
android:textColor="@color/play_controls_time_text_color"
android:textSize="@dimen/play_controls_time_text_size"
android:fontFamily="@string/font" />
<RelativeLayout
android:id="@id/body"
android:layout_width="@dimen/play_controls_width"
android:layout_height="wrap_content"
android:layout_below="@id/time_text"
android:layout_centerHorizontal="true"
android:background="@drawable/play_controls_body_shape">
<com.android.tv.menu.PlaybackProgressBar
android:id="@+id/progress"
android:layout_width="match_parent"
android:layout_height="@dimen/play_controls_progress_height"
android:layout_alignParentTop="true"
tv:progressDrawable="@drawable/playback_progress_bar" />
<TextView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:background="@drawable/play_controls_body_background"
android:gravity="center"
android:maxLines="1"
android:textColor="@color/play_controls_unavailable_message_text_color"
android:textSize="@dimen/play_controls_unavailable_message_text_size"
android:fontFamily="@string/font" />
<TextView
android:id="@+id/program_start_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_below="@id/progress"
android:layout_marginStart="@dimen/play_controls_program_time_margin_start"
android:layout_marginTop="@dimen/play_controls_program_time_margin_top"
android:maxLines="1"
android:textColor="@color/play_controls_rec_time_text_color"
android:textSize="@dimen/play_controls_rec_time_text_size"
android:fontFamily="@string/font" />
<TextView
android:id="@+id/program_end_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_below="@id/progress"
android:layout_marginEnd="@dimen/play_controls_program_time_margin_end"
android:layout_marginTop="@dimen/play_controls_program_time_margin_top"
android:maxLines="1"
android:textColor="@color/play_controls_rec_time_text_color"
android:textSize="@dimen/play_controls_rec_time_text_size"
android:fontFamily="@string/font" />
<com.android.tv.menu.PlayControlsButton
android:id="@+id/play_pause"
android:layout_width="@dimen/play_controls_button_width"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
android:layout_marginRight="@dimen/play_controls_button_compact_margin"
android:layout_centerHorizontal="true" />
<com.android.tv.menu.PlayControlsButton
android:id="@+id/rewind"
android:layout_width="@dimen/play_controls_button_width"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
android:layout_marginRight="@dimen/play_controls_button_compact_margin"
android:layout_toStartOf="@id/play_pause" />
<com.android.tv.menu.PlayControlsButton
android:id="@+id/jump_previous"
android:layout_width="@dimen/play_controls_button_width"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
android:layout_marginRight="@dimen/play_controls_button_compact_margin"
android:layout_toStartOf="@id/rewind" />
<com.android.tv.menu.PlayControlsButton
android:id="@+id/fast_forward"
android:layout_width="@dimen/play_controls_button_width"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
android:layout_marginRight="@dimen/play_controls_button_compact_margin"
android:layout_toEndOf="@id/play_pause" />
<com.android.tv.menu.PlayControlsButton
android:id="@+id/jump_next"
android:layout_width="@dimen/play_controls_button_width"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
android:layout_marginRight="@dimen/play_controls_button_compact_margin"
android:layout_toEndOf="@id/fast_forward" />
<com.android.tv.menu.PlayControlsButton
android:id="@+id/record"
android:layout_width="@dimen/play_controls_button_width"
android:layout_height="@dimen/play_controls_button_height"
android:layout_below="@id/progress"
android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
android:layout_marginRight="@dimen/play_controls_button_compact_margin"
android:layout_toEndOf="@id/jump_next" />
</RelativeLayout>
<View
android:id="@+id/time_indicator"
android:layout_width="@dimen/play_controls_time_indicator_width"
android:layout_height="@dimen/play_controls_time_indicator_height"
android:layout_marginTop="@dimen/play_controls_time_indicator_top_margin"
android:layout_alignTop="@id/body"
android:layout_alignStart="@id/body"
android:background="@drawable/play_controls_time_indicator"
android:elevation="1dp" />
</RelativeLayout>