77 lines
No EOL
2.8 KiB
XML
77 lines
No EOL
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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:orientation="vertical"
|
|
android:gravity="top"
|
|
tools:context=".VideoPlayer">
|
|
|
|
<!-- The primary full-screen view. This can be replaced with whatever view
|
|
is needed to present your content, e.g. VideoView, SurfaceView,
|
|
TextureView, etc. -->
|
|
<!--Widget for exoplayer view-->
|
|
|
|
<com.google.android.exoplayer2.ui.StyledPlayerView
|
|
android:id="@+id/player_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="20dp"
|
|
android:layout_weight="2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:orientation="vertical"
|
|
android:layout_weight="0" >
|
|
|
|
<com.google.android.exoplayer2.ui.StyledPlayerControlView
|
|
android:id="@+id/control_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="20dp"
|
|
app:bar_height="30dp"
|
|
app:show_timeout="0"
|
|
app:controller_layout_id="@layout/player_custom_controls" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:id="@+id/previous"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
android:background="#000000"
|
|
android:scaleType="centerCrop"
|
|
android:layout_marginHorizontal="20dp"
|
|
app:srcCompat="@drawable/previous"
|
|
android:contentDescription="@string/previous" />
|
|
|
|
<ImageView
|
|
android:id="@+id/play"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
android:background="#000000"
|
|
android:scaleType="centerCrop"
|
|
android:layout_marginHorizontal="20dp"
|
|
app:srcCompat="@drawable/play"
|
|
android:contentDescription="@string/play" />
|
|
|
|
<ImageView
|
|
android:id="@+id/next"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
android:background="#000000"
|
|
android:scaleType="centerCrop"
|
|
android:layout_marginHorizontal="20dp"
|
|
app:srcCompat="@drawable/next"
|
|
android:contentDescription="@string/next" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |