diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-12-22 02:42:24 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-12-22 02:42:24 +0000 |
commit | 60b659e651b4d8e7d9ca26b17ba8990497022ed1 (patch) | |
tree | 354825f6ede0d3fac91c09b2195e8c225111090b /app/src/main/res/layout/item_post.xml | |
parent | 33db4809e4376f91a566037f16694f8f19639e02 (diff) | |
download | infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.tar infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.tar.gz infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.tar.bz2 infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.tar.lz infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.tar.xz infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.tar.zst infinity-for-reddit-60b659e651b4d8e7d9ca26b17ba8990497022ed1.zip |
Use GifImageView to display all the images in order to prevent slow playing of the gifs. Extend GifImageView as AspectRatioGifImageView to retain the features of AspectRatioImageView.
Diffstat (limited to 'app/src/main/res/layout/item_post.xml')
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index fd65f268..79a545e6 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -20,8 +20,8 @@ android:layout_marginEnd="16dp" android:layout_marginTop="16dp"> - <de.hdodenhof.circleimageview.CircleImageView - android:id="@+id/subreddit_icon_circle_image_view_best_post_item" + <CustomView.AspectRatioGifImageView + android:id="@+id/subreddit_icon_gif_image_view_best_post_item" android:layout_width="24dp" android:layout_height="24dp" android:layout_alignParentStart="true" @@ -34,7 +34,7 @@ android:layout_marginStart="16dp" android:layout_marginEnd="8dp" android:layout_toStartOf="@id/stickied_post_image_view_best_post_item" - android:layout_toEndOf="@id/subreddit_icon_circle_image_view_best_post_item" + android:layout_toEndOf="@id/subreddit_icon_gif_image_view_best_post_item" android:layout_centerVertical="true" android:textColor="#E91E63"/> @@ -148,7 +148,7 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" /> - <com.santalu.aspectratioimageview.AspectRatioImageView + <CustomView.AspectRatioGifImageView android:id="@+id/image_view_best_post_item" android:layout_width="match_parent" android:layout_height="wrap_content" |