| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2017 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="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:layoutDirection="ltr"> |
| |
| <RelativeLayout |
| android:id="@+id/title_bar" |
| android:background="@layout/title_bar_gradient" |
| style="@style/TitleBar"> |
| |
| <LinearLayout |
| android:id="@+id/title_bar_left" |
| android:gravity="center" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentLeft="true" |
| android:layout_centerVertical="true" |
| android:orientation="horizontal"> |
| |
| <ImageButton |
| android:id="@+id/back" |
| android:clickable="true" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_centerVertical="true" |
| android:paddingLeft="5dip" |
| android:visibility="visible" |
| style="@style/TitleBarButton.Back"/> |
| |
| <TextView |
| android:id="@+id/title_text" |
| android:ellipsize="end" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_toRightOf="@id/back" |
| android:layout_centerVertical="true" |
| android:maxLines="1" |
| android:paddingLeft="5dip" |
| android:paddingRight="5dip" |
| android:textSize="15sp" |
| android:textColor="#FFFFFFFF"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/title_bar_right" |
| android:gravity="center" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:orientation="horizontal"> |
| |
| <LinearLayout |
| android:id="@+id/ad_external_link" |
| android:clickable="true" |
| android:gravity="center" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:paddingLeft="5dip" |
| android:paddingRight="10dip" |
| android:orientation="horizontal" |
| android:visibility="gone"> |
| |
| <TextView |
| android:id="@+id/ad_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:paddingRight="5dip" |
| android:text="@string/MediaControlView2_ad_text" |
| android:textSize="10sp" |
| android:textColor="#FFFFFFFF" /> |
| |
| <ImageButton |
| android:id="@+id/ad_launch" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| style="@style/TitleBarButton.Launch" /> |
| </LinearLayout> |
| |
| <view class="com.android.support.mediarouter.app.MediaRouteButton" |
| android:id="@+id/cast" |
| android:layout_centerVertical="true" |
| android:visibility="gone" |
| android:contentDescription="@string/mr_button_content_description" |
| style="@style/TitleBarButton" /> |
| </LinearLayout> |
| |
| </RelativeLayout> |
| |
| <LinearLayout |
| android:id="@+id/center_view" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1" |
| android:gravity="center" |
| android:orientation="vertical"> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/minimal_extra_view" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="right"> |
| |
| <ImageButton |
| android:id="@+id/fullscreen" |
| android:gravity="right" |
| style="@style/BottomBarButton.FullScreen" /> |
| </LinearLayout> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/mcv2_custom_progress_thumb_size"> |
| |
| <SeekBar |
| android:id="@+id/progress" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/mcv2_custom_progress_thumb_size" |
| android:contentDescription="@string/mcv2_seek_bar_desc" |
| android:padding="0dp" |
| android:maxHeight="@dimen/mcv2_custom_progress_max_size" |
| android:minHeight="@dimen/mcv2_custom_progress_max_size" |
| android:elevation="10dp"/> |
| |
| <View |
| android:id="@+id/progress_buffer" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/mcv2_buffer_view_height" |
| android:layout_alignParentBottom="true" |
| android:background="@color/bottom_bar_background" |
| android:elevation="0dp"/> |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:id="@+id/bottom_bar" |
| android:layout_width="match_parent" |
| android:layout_height="44dp" |
| android:orientation="horizontal" |
| android:background="@color/bottom_bar_background"> |
| |
| <LinearLayout |
| android:id="@+id/bottom_bar_left" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_alignParentStart="true" |
| android:layout_centerVertical="true"> |
| |
| <TextView |
| android:id="@+id/ad_skip_time" |
| android:gravity="center" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_marginLeft="4dp" |
| android:textSize="12sp" |
| android:textColor="#FFFFFF" |
| android:visibility="gone" /> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/time" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_toRightOf="@id/bottom_bar_left" |
| android:paddingLeft="10dp" |
| android:paddingRight="10dp" |
| android:gravity="center" > |
| |
| <TextView |
| android:id="@+id/time_current" |
| style="@style/TimeText.Current"/> |
| <TextView |
| android:id="@+id/time_interpunct" |
| style="@style/TimeText.Interpunct"/> |
| <TextView |
| android:id="@+id/time_end" |
| style="@style/TimeText.End"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/bottom_bar_right" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:gravity="right"> |
| |
| <LinearLayout |
| android:id="@+id/basic_controls" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:orientation="horizontal" > |
| |
| <TextView |
| android:id="@+id/ad_remaining" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="center" |
| android:textSize="12sp" |
| android:textColor="#FFFFFF" |
| android:visibility="gone" /> |
| |
| <ImageButton |
| android:id="@+id/mute" |
| style="@style/BottomBarButton.Mute" /> |
| <ImageButton |
| android:id="@+id/subtitle" |
| android:scaleType="fitCenter" |
| android:visibility="gone" |
| style="@style/BottomBarButton.CC" /> |
| <ImageButton |
| android:id="@+id/fullscreen" |
| style="@style/BottomBarButton.FullScreen"/> |
| <ImageButton |
| android:id="@+id/overflow_right" |
| style="@style/BottomBarButton.OverflowRight"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/extra_controls" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:visibility="gone" |
| android:orientation="horizontal" |
| android:gravity="center_vertical"> |
| |
| <LinearLayout |
| android:id="@+id/custom_buttons" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| |
| <ImageButton |
| android:id="@+id/video_quality" |
| style="@style/BottomBarButton.VideoQuality" /> |
| <ImageButton |
| android:id="@+id/settings" |
| style="@style/BottomBarButton.Settings" /> |
| <ImageButton |
| android:id="@+id/overflow_left" |
| style="@style/BottomBarButton.OverflowLeft"/> |
| </LinearLayout> |
| </LinearLayout> |
| </RelativeLayout> |
| </LinearLayout> |