2018-08-31 14:30:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
<com.google.android.exoplayer2.ui.AspectRatioFrameLayout
|
|
|
|
android:id="@+id/aspectRatioLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_gravity="center">
|
|
|
|
|
|
|
|
<SurfaceView
|
|
|
|
android:id="@+id/surfaceView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"/>
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/surfaceForeground"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/black"/>
|
|
|
|
|
|
|
|
</com.google.android.exoplayer2.ui.AspectRatioFrameLayout>
|
|
|
|
|
|
|
|
<com.google.android.exoplayer2.ui.SubtitleView
|
|
|
|
android:id="@+id/subtitleView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_gravity="center"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/endScreen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:background="@android:color/white"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playQueuePanel"
|
|
|
|
android:layout_width="380dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:visibility="invisible"
|
|
|
|
android:background="?attr/queue_background_color"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:id="@+id/playQueueControl">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playQueueClose"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_alignParentEnd="true"
|
2020-05-14 15:05:09 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_marginEnd="40dp"
|
2020-05-14 15:05:09 +00:00
|
|
|
android:layout_marginRight="40dp"
|
|
|
|
android:background="?android:selectableItemBackground"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-05-14 15:05:09 +00:00
|
|
|
android:padding="10dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:tint="?attr/colorAccent"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_close_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/repeatButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginLeft="40dp"
|
|
|
|
android:layout_marginStart="40dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:tint="?attr/colorAccent"
|
|
|
|
android:src="@drawable/exo_controls_repeat_off"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/shuffleButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/repeatButton"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:tint="?attr/colorAccent"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_shuffle_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
2019-10-04 12:59:08 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2018-08-31 14:30:06 +00:00
|
|
|
android:id="@+id/playQueue"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_below="@id/playQueueControl"
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
app:layoutManager="LinearLayoutManager"
|
|
|
|
tools:listitem="@layout/play_queue_item"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playbackControlRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/video_overlay_color"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/playbackWindowRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fitsSystemWindows="true">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/topControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2020-03-25 15:23:47 +00:00
|
|
|
android:background="@drawable/player_controls_top_background"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:gravity="top"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/metadataView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_toLeftOf="@+id/qualityTextView"
|
|
|
|
android:gravity="top"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/titleTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:fadingEdge="horizontal"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:clickable="true"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="The Video Title LONG very LONG"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/channelTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:fadingEdge="horizontal"
|
|
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
|
|
android:scrollHorizontally="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:clickable="true"
|
|
|
|
tools:text="The Video Artist LONG very LONG very Long"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-09-20 09:42:32 +00:00
|
|
|
<Button
|
2018-08-31 14:30:06 +00:00
|
|
|
android:id="@+id/qualityTextView"
|
2019-09-20 09:42:32 +00:00
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_toLeftOf="@+id/playbackSpeed"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="50dp"
|
|
|
|
android:text="720p"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
2019-09-20 09:42:32 +00:00
|
|
|
android:textAllCaps="false"
|
|
|
|
android:padding="5dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
tools:ignore="HardcodedText,RtlHardcoded"/>
|
|
|
|
|
2019-09-20 09:42:32 +00:00
|
|
|
<Button
|
2018-08-31 14:30:06 +00:00
|
|
|
android:id="@+id/playbackSpeed"
|
2019-09-20 09:42:32 +00:00
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_toLeftOf="@+id/queueButton"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minHeight="35dp"
|
|
|
|
android:minWidth="40dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
2019-09-20 09:42:32 +00:00
|
|
|
android:textAllCaps="false"
|
|
|
|
android:padding="5dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"
|
|
|
|
tools:text="1x" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/queueButton"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_toLeftOf="@+id/moreOptionsButton"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_list_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/moreOptionsButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginLeft="2dp"
|
2019-04-06 18:21:32 +00:00
|
|
|
android:padding="5dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_expand_more_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/secondaryControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/topControls"
|
|
|
|
android:gravity="top"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2019-09-20 09:42:32 +00:00
|
|
|
<Button
|
2018-08-31 14:30:06 +00:00
|
|
|
android:id="@+id/resizeTextView"
|
2019-09-20 09:42:32 +00:00
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="50dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
2019-09-20 09:42:32 +00:00
|
|
|
android:textAllCaps="false"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded"
|
|
|
|
tools:text="FIT"/>
|
|
|
|
|
2019-09-20 09:42:32 +00:00
|
|
|
<Button
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:id="@+id/captionTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
2020-03-13 18:50:11 +00:00
|
|
|
android:layout_toLeftOf="@id/switchMute"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_toRightOf="@id/resizeTextView"
|
|
|
|
android:gravity="center|left"
|
|
|
|
android:minHeight="35dp"
|
|
|
|
android:minWidth="40dp"
|
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:paddingRight="2dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="bold"
|
2019-09-20 09:42:32 +00:00
|
|
|
android:textAllCaps="false"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
tools:ignore="RelativeOverlap,RtlHardcoded"
|
|
|
|
tools:text="English" />
|
|
|
|
|
|
|
|
<ImageButton
|
2019-04-25 18:47:39 +00:00
|
|
|
android:id="@+id/kodi"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_cast_white_24dp"
|
2019-04-25 18:47:39 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/play_with_kodi_title"
|
2020-05-07 07:08:52 +00:00
|
|
|
android:visibility="gone"
|
2019-04-25 18:47:39 +00:00
|
|
|
tools:ignore="RtlHardcoded"
|
2020-05-07 07:08:52 +00:00
|
|
|
tools:visibility="visible"/>
|
2019-04-25 18:47:39 +00:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/share"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:layout_toLeftOf="@id/kodi"
|
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_share_white_24dp"
|
2019-04-06 18:21:32 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/share"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/toggleOrientation"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_toLeftOf="@id/share"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_screen_rotation_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/toggle_orientation"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/switchPopup"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_toLeftOf="@id/toggleOrientation"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_fullscreen_exit_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/switch_to_popup"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/switchBackground"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_toLeftOf="@id/switchPopup"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_headset_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/switch_to_background"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
2020-02-23 20:28:40 +00:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/switchMute"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_toLeftOf="@id/switchBackground"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_volume_off_white_24dp"
|
2020-02-23 20:28:40 +00:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/switch_to_background"
|
2020-03-21 15:58:53 +00:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2018-08-31 14:30:06 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottomControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
2020-03-25 15:23:47 +00:00
|
|
|
android:background="@drawable/player_controls_background"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackCurrentTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minHeight="40dp"
|
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText"
|
|
|
|
tools:text="1:06:29"/>
|
|
|
|
|
|
|
|
|
2019-09-20 10:42:56 +00:00
|
|
|
<org.schabi.newpipe.views.FocusAwareSeekBar
|
2018-08-31 14:30:06 +00:00
|
|
|
android:id="@+id/playbackSeekBar"
|
|
|
|
style="@style/Widget.AppCompat.SeekBar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
tools:progress="25"
|
|
|
|
tools:secondaryProgress="50"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackEndTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="-:--:--"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
tools:ignore="HardcodedText"
|
|
|
|
tools:text="1:23:49"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/playbackLiveSync"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:gravity="center"
|
Multiple localization fixes
With the extractor PR, fixes title & description shown in the wrong language.
Fixed views / spectators counts possibly in the wrong language
Fixed live spectators not showing full count on detail page
Fixed LIVE shown on players, it shows translated instead
Fixed Videos string in search / three dots not available in Weblate
(because it was videos, but there already was a plural string named videos, in Weblate)
Subscriber count is always giving the short count.
We can't get exact number since this YouTube update: https://support.google.com/youtube/thread/6543166
But only short count (B, M, k), so showing full number, eg for 1.9M: 1,900,000, is wrong because the number could be 1,923,490 or 1,897,789…
Added a « sytem default » option to content language and country language selector.
It's the one selected by default (not en-GB anymore then), and correspond to the
language of the system / country of the system
By system I mean phone, tablet, TV…
Fixed russian showing - before time ago (eg 19hrs ago)
This is a workaround fix, I opened an issue on prettytime library repo.
Fixed russian plurals:
other was used instead of many for videos and subscribers
Fixed seek_duration english only
2020-02-14 17:19:35 +00:00
|
|
|
android:text="@string/duration_live"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
tools:ignore="HardcodedText,RtlHardcoded,RtlSymmetry" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playPauseButton"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:scaleType="fitXY"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/ic_pause_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playPreviousButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_marginEnd="30dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_toStartOf="@id/playPauseButton"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/exo_controls_previous"
|
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/playNextButton"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_marginStart="30dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_toEndOf="@id/playPauseButton"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/exo_controls_next"
|
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
2018-12-27 14:29:17 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/closeButton"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/playPauseButton"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:text="@string/close"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:visibility="invisible" />
|
|
|
|
|
2018-08-31 14:30:06 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/controlAnimationView"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:background="@drawable/background_oval_black_transparent"
|
2020-05-29 13:32:14 +00:00
|
|
|
android:padding="15dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="ContentDescription"
|
2020-03-25 15:23:47 +00:00
|
|
|
tools:src="@drawable/ic_fast_rewind_white_24dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/loading_panel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/black"
|
|
|
|
tools:visibility="gone">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progressBarLoadingPanel"
|
|
|
|
style="?android:attr/progressBarStyleLargeInverse"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_toEndOf="@+id/loading_panel"
|
|
|
|
android:layout_toRightOf="@+id/loading_panel"
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/volumeRelativeLayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:background="@drawable/background_oval_black_transparent"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/volumeProgressBar"
|
|
|
|
style="?android:progressBarStyleHorizontal"
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:progressDrawable="@drawable/progress_circular_white" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/volumeImageView"
|
2020-05-29 13:32:14 +00:00
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="70dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
tools:ignore="ContentDescription"
|
2020-03-25 15:23:47 +00:00
|
|
|
tools:src="@drawable/ic_volume_up_white_24dp" />
|
2018-08-31 14:30:06 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/brightnessRelativeLayout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:background="@drawable/background_oval_black_transparent"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/brightnessProgressBar"
|
|
|
|
style="?android:progressBarStyleHorizontal"
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:progressDrawable="@drawable/progress_circular_white" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/brightnessImageView"
|
2020-05-29 13:32:14 +00:00
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="70dp"
|
2018-08-31 14:30:06 +00:00
|
|
|
android:layout_centerInParent="true"
|
|
|
|
tools:ignore="ContentDescription"
|
2020-03-25 15:23:47 +00:00
|
|
|
tools:src="@drawable/ic_brightness_high_white_24dp" />
|
2018-08-31 14:30:06 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/currentDisplaySeek"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="58dp"
|
|
|
|
android:background="#64000000"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="26sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="1:06:29"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|