aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-07-06 14:14:58 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-07-06 14:14:58 +0000
commitba2a219168721680cd6e5e553a35a7cbf2614e22 (patch)
tree3f7ca7211e500aa0473c21438d26cc4b20a971ee /app/src/main/res/layout
parent3ef4b90a63a55e712babecf1ad9ac8972a255a91 (diff)
downloadinfinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.tar
infinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.tar.gz
infinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.tar.bz2
infinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.tar.lz
infinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.tar.xz
infinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.tar.zst
infinity-for-reddit-ba2a219168721680cd6e5e553a35a7cbf2614e22.zip
Show a preview image before autoplaying video is loaded.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/item_post_detail_video_autoplay.xml7
-rw-r--r--app/src/main/res/layout/item_post_video_type_autoplay.xml9
2 files changed, 15 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_post_detail_video_autoplay.xml b/app/src/main/res/layout/item_post_detail_video_autoplay.xml
index 6ee5736a..b8b75860 100644
--- a/app/src/main/res/layout/item_post_detail_video_autoplay.xml
+++ b/app/src/main/res/layout/item_post_detail_video_autoplay.xml
@@ -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"
diff --git a/app/src/main/res/layout/item_post_video_type_autoplay.xml b/app/src/main/res/layout/item_post_video_type_autoplay.xml
index 5db83d38..c5713565 100644
--- a/app/src/main/res/layout/item_post_video_type_autoplay.xml
+++ b/app/src/main/res/layout/item_post_video_type_autoplay.xml
@@ -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>