aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-10-23 11:53:07 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-10-23 11:53:07 +0000
commit7c38857ee875462d28152417b4e8215182598886 (patch)
treef2114d061609605eaddfcf1a4cbc23693a1d31be /app/src/main/res
parentddebd6086d11df4dce3d340c8df0e37efc230949 (diff)
downloadinfinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.tar
infinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.tar.gz
infinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.tar.bz2
infinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.tar.lz
infinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.tar.xz
infinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.tar.zst
infinity-for-reddit-7c38857ee875462d28152417b4e8215182598886.zip
Combine some ViewHolders in PostRecyclerViewAdapter to prevent lag.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_post_gallery.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_post_gallery.xml b/app/src/main/res/layout/item_post_gallery.xml
index c0b29287..ed5cdbe3 100644
--- a/app/src/main/res/layout/item_post_gallery.xml
+++ b/app/src/main/res/layout/item_post_gallery.xml
@@ -197,6 +197,17 @@
</com.nex3z.flowlayout.FlowLayout>
+ <TextView
+ android:id="@+id/link_text_view_item_post_gallery"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:textSize="?attr/font_12"
+ android:fontFamily="?attr/font_family"
+ android:visibility="gone" />
+
<RelativeLayout
android:id="@+id/image_wrapper_relative_layout_item_post_gallery"
android:layout_width="match_parent"
@@ -210,6 +221,16 @@
android:adjustViewBounds="true"
android:scaleType="fitStart" />
+ <ImageView
+ android:id="@+id/video_or_gif_indicator_image_view_item_post_gallery"
+ 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" />
+
<ProgressBar
android:id="@+id/progress_bar_item_post_gallery_type"
android:layout_width="wrap_content"