mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-06 05:49:49 +02:00
Show a preview image before autoplaying video is loaded.
This commit is contained in:
@@ -202,6 +202,13 @@
|
||||
android:background="#000000"
|
||||
app:resize_mode="fixed_width">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/preview_image_view_item_post_detail_video_autoplay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitStart"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.google.android.exoplayer2.ui.PlayerView
|
||||
android:id="@+id/player_view_item_post_detail_video_autoplay"
|
||||
android:layout_width="match_parent"
|
||||
|
@@ -206,7 +206,14 @@
|
||||
android:id="@+id/player_view_item_post_video_type_autoplay"
|
||||
android:layout_width="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" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/preview_image_view_item_post_video_type_autoplay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitStart"
|
||||
android:visibility="gone" />
|
||||
|
||||
</com.google.android.exoplayer2.ui.AspectRatioFrameLayout>
|
||||
|
||||
|
Reference in New Issue
Block a user