diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-12-19 10:32:37 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-12-19 10:32:37 +0000 |
commit | ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a (patch) | |
tree | 46c42fbd205c226736bebeaa98a24d28312899fb /app/src/main/res/layout/item_post.xml | |
parent | f0c04a2f6d5b848da159702e7800d22ccb16f71b (diff) | |
download | infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.tar infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.tar.gz infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.tar.bz2 infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.tar.lz infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.tar.xz infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.tar.zst infinity-for-reddit-ae49dd50d4b8ccdbc99a142c44e29e63ab111a3a.zip |
Show a play button on the image if the post is a video or an image.
Diffstat (limited to 'app/src/main/res/layout/item_post.xml')
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index 22b94789..787a1fe9 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -231,19 +231,35 @@ android:layout_height="wrap_content" android:visibility="gone"> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ml.docilealligator.infinityforreddit.CustomView.AspectRatioGifImageView + android:id="@+id/image_view_best_post_item" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:scaleType="fitStart" /> + + <ImageView + android:id="@+id/play_button_image_view_item_post" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:layout_gravity="start" + android:background="@drawable/play_button_round_background" + android:src="@drawable/ic_play_circle_36dp" + android:visibility="gone" /> + + </FrameLayout> + <ProgressBar android:id="@+id/progress_bar_item_post" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> - <ml.docilealligator.infinityforreddit.CustomView.AspectRatioGifImageView - android:id="@+id/image_view_best_post_item" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:adjustViewBounds="true" - android:scaleType="fitStart" /> - <RelativeLayout android:id="@+id/load_image_error_relative_layout_item_post" android:layout_width="match_parent" |