aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-12-22 02:42:24 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-12-22 02:42:24 +0000
commit60b659e651b4d8e7d9ca26b17ba8990497022ed1 (patch)
tree354825f6ede0d3fac91c09b2195e8c225111090b /app/src/main/res
parent33db4809e4376f91a566037f16694f8f19639e02 (diff)
downloadinfinity-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')
-rw-r--r--app/src/main/res/layout/activity_view_subreddit_detail.xml4
-rw-r--r--app/src/main/res/layout/item_post.xml8
-rw-r--r--app/src/main/res/layout/item_subscribed_subreddit.xml4
3 files changed, 8 insertions, 8 deletions
diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml
index 67bf3928..528518e8 100644
--- a/app/src/main/res/layout/activity_view_subreddit_detail.xml
+++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml
@@ -31,8 +31,8 @@
android:scaleType="centerCrop"
android:layout_height="180dp" />
- <de.hdodenhof.circleimageview.CircleImageView
- android:id="@+id/icon_circle_image_view_view_subreddit_detail_activity"
+ <com.felipecsl.gifimageview.library.GifImageView
+ android:id="@+id/icon_gif_image_view_view_subreddit_detail_activity"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_marginTop="-36dp"
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"
diff --git a/app/src/main/res/layout/item_subscribed_subreddit.xml b/app/src/main/res/layout/item_subscribed_subreddit.xml
index 3795aa62..0b68efbf 100644
--- a/app/src/main/res/layout/item_subscribed_subreddit.xml
+++ b/app/src/main/res/layout/item_subscribed_subreddit.xml
@@ -7,8 +7,8 @@
android:focusable="true"
android:background="?attr/selectableItemBackground">
- <de.hdodenhof.circleimageview.CircleImageView
- android:id="@+id/subreddit_icon_circle_image_view_item_subscribed_subreddit"
+ <com.felipecsl.gifimageview.library.GifImageView
+ android:id="@+id/subreddit_icon_gif_image_view_item_subscribed_subreddit"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center_vertical"