2018-03-04 21:04:32 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-11-30 11:25:42 +01:00
|
|
|
android:keepScreenOn="true"
|
2018-07-01 15:11:26 +02:00
|
|
|
tools:context="net.schueller.peertube.activity.VideoPlayActivity">
|
2018-03-04 21:04:32 +01:00
|
|
|
|
2018-03-11 02:24:06 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
2018-03-04 21:04:32 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-03-11 02:24:06 +01:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2018-03-04 21:04:32 +01:00
|
|
|
|
2018-03-11 02:24:06 +01:00
|
|
|
<com.google.android.exoplayer2.ui.PlayerView
|
|
|
|
android:id="@+id/video_view"
|
2018-03-04 21:04:32 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-03-11 02:24:06 +01:00
|
|
|
android:layout_height="250dp"
|
|
|
|
android:background="@color/black"
|
|
|
|
|
|
|
|
app:layout_constraintDimensionRatio="H,3:1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-07-01 16:44:19 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2018-03-11 02:24:06 +01:00
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progress"
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/video_view"
|
|
|
|
android:background="@color/black"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:max="100" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.LinearLayoutCompat
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_below="@id/progress"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Title" />
|
|
|
|
|
2018-03-11 17:21:30 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/videoMeta"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption" />
|
|
|
|
|
2018-03-11 02:24:06 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="@style/Base.TextAppearance.AppCompat.Body1" />
|
2018-03-04 21:04:32 +01:00
|
|
|
|
2018-03-11 02:24:06 +01:00
|
|
|
</android.support.v7.widget.LinearLayoutCompat>
|
2018-03-04 21:04:32 +01:00
|
|
|
|
|
|
|
|
2018-03-11 02:24:06 +01:00
|
|
|
</RelativeLayout>
|
2018-03-04 21:04:32 +01:00
|
|
|
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|