Skip to content

Commit

Permalink
- Fixed player control positions
Browse files Browse the repository at this point in the history
- Added fade to player controls
  • Loading branch information
Stefan Schueller committed Jan 27, 2019
1 parent 3d4d74e commit 88b5332
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_video_player.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
android:layout_height="match_parent">

<com.google.android.exoplayer2.ui.PlayerView
android:animateLayoutChanges="true"
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
16 changes: 9 additions & 7 deletions app/src/main/res/layout/video_playback_controls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@



<View
<Space
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1" />
android:layout_weight="1"
/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:paddingTop="4dp">
android:paddingTop="8dp">

<ImageButton
android:id="@id/exo_rew"
Expand All @@ -65,11 +66,12 @@

</LinearLayout>

<View

<Space
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1" />

android:layout_weight="1"
/>

<LinearLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -130,7 +132,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginTop="-12dp"
android:gravity="bottom"
android:orientation="horizontal">

Expand Down

0 comments on commit 88b5332

Please sign in to comment.