From 9efeeb88ac1fde770ccd7506f7c6667c0d333f1e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 16 Feb 2021 18:31:42 +0800 Subject: Continue adding Gallery Layout. --- .../adapters/PostRecyclerViewAdapter.java | 6 ++++ .../infinityforreddit/fragments/PostFragment.java | 4 +-- .../main/res/drawable-night/ic_gallery_24dp.xml | 5 ++++ app/src/main/res/drawable-night/ic_link.xml | 2 +- app/src/main/res/drawable/ic_link.xml | 2 +- app/src/main/res/layout/item_post_gallery.xml | 34 +++++++++++----------- 6 files changed, 32 insertions(+), 21 deletions(-) create mode 100644 app/src/main/res/drawable-night/ic_gallery_24dp.xml diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java index 47db2b6d..b4230074 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -1095,6 +1095,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter + + diff --git a/app/src/main/res/drawable-night/ic_link.xml b/app/src/main/res/drawable-night/ic_link.xml index 7d73bd27..4b447423 100644 --- a/app/src/main/res/drawable-night/ic_link.xml +++ b/app/src/main/res/drawable-night/ic_link.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/src/main/res/drawable/ic_link.xml b/app/src/main/res/drawable/ic_link.xml index bfe6b0c4..720bb7c5 100644 --- a/app/src/main/res/drawable/ic_link.xml +++ b/app/src/main/res/drawable/ic_link.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/app/src/main/res/layout/item_post_gallery.xml b/app/src/main/res/layout/item_post_gallery.xml index dd1c7c1d..4d40c4d8 100644 --- a/app/src/main/res/layout/item_post_gallery.xml +++ b/app/src/main/res/layout/item_post_gallery.xml @@ -19,14 +19,28 @@ android:layout_gravity="center" android:visibility="gone" /> + + + + - - - -