diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-13 14:10:43 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-13 14:10:43 +0000 |
commit | aa673436ab4fb13a810b6cdc4624f830c529d704 (patch) | |
tree | 7f5f944e670ce0d1d2a0a1bb023517eda5ea84cb /app/src/main/res/layout | |
parent | 05e3889fe7eb9c01bd050da1da9d9e7f24f0945e (diff) | |
download | infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.tar infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.tar.gz infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.tar.bz2 infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.tar.lz infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.tar.xz infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.tar.zst infinity-for-reddit-aa673436ab4fb13a810b6cdc4624f830c529d704.zip |
Gfycat and Redgifs videos autoplay in CommentAndPostRecyclerViewAdapter is available. Show an error icon when loading gfycats and redgifs videos failed in PostRecyclerViewAdapter and CommentAndPostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/item_post_detail_video_autoplay.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_video_type_autoplay.xml | 10 |
2 files changed, 20 insertions, 0 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 6f3183b7..79e32dd7 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 @@ -214,6 +214,16 @@ android:scaleType="fitStart" android:visibility="gone" /> + <ImageView + android:id="@+id/error_loading_gfycat_image_view_item_post_detail_video_autoplay" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:layout_gravity="center" + android:background="@drawable/play_button_round_background" + android:src="@drawable/ic_error_white_36dp" + android:visibility="gone" /> + </com.google.android.exoplayer2.ui.AspectRatioFrameLayout> <androidx.constraintlayout.widget.ConstraintLayout 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 dd404645..b68c9231 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 @@ -217,6 +217,16 @@ android:scaleType="fitStart" android:visibility="gone" /> + <ImageView + android:id="@+id/error_loading_gfycat_image_view_item_post_video_type_autoplay" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:layout_gravity="center" + android:background="@drawable/play_button_round_background" + android:src="@drawable/ic_error_white_36dp" + android:visibility="gone" /> + </com.google.android.exoplayer2.ui.AspectRatioFrameLayout> <androidx.constraintlayout.widget.ConstraintLayout |