Merge pull request #232 from Skyluker4/AutoplayVideoBackground

Autoplay video background
This commit is contained in:
Docile-Alligator 2020-12-29 17:02:58 +08:00 committed by GitHub
commit 1d857eed47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid
android:color="#80000000" />
<corners
android:topLeftRadius="16dp"
android:topRightRadius="16dp" />
</shape>

View File

@ -5,7 +5,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:layout_gravity="bottom"> android:layout_gravity="bottom"
android:background="@drawable/background_autoplay">
<TextView android:id="@id/exo_position" <TextView android:id="@id/exo_position"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@ -205,7 +205,8 @@
android:id="@+id/player_view_item_post_detail_video_autoplay" android:id="@+id/player_view_item_post_detail_video_autoplay"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:controller_layout_id="@layout/exo_autoplay_playback_control_view"/> app:controller_layout_id="@layout/exo_autoplay_playback_control_view"
android:animateLayoutChanges="true" />
<pl.droidsonroids.gif.GifImageView <pl.droidsonroids.gif.GifImageView
android:id="@+id/preview_image_view_item_post_detail_video_autoplay" android:id="@+id/preview_image_view_item_post_detail_video_autoplay"

View File

@ -208,7 +208,8 @@
android:id="@+id/player_view_item_post_video_type_autoplay" android:id="@+id/player_view_item_post_video_type_autoplay"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:controller_layout_id="@layout/exo_autoplay_playback_control_view" /> app:controller_layout_id="@layout/exo_autoplay_playback_control_view"
android:animateLayoutChanges="true" />
<pl.droidsonroids.gif.GifImageView <pl.droidsonroids.gif.GifImageView
android:id="@+id/preview_image_view_item_post_video_type_autoplay" android:id="@+id/preview_image_view_item_post_video_type_autoplay"