aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-11-14 04:07:15 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-11-14 04:07:15 +0000
commit8520c0c8adbde978cc2be93388ebbc253c0f4eea (patch)
tree24db3e7398f42e1274222bacab7f6d9e6fe01af3 /app/src/main/res/layout
parentc44fecb3f2504a228234751db380d98af32339ee (diff)
downloadinfinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.tar
infinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.tar.gz
infinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.tar.bz2
infinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.tar.lz
infinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.tar.xz
infinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.tar.zst
infinity-for-reddit-8520c0c8adbde978cc2be93388ebbc253c0f4eea.zip
Swipe to see images in gallery in gallery layout.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/item_post_card_2_gallery_type.xml2
-rw-r--r--app/src/main/res/layout/item_post_gallery_gallery_type.xml47
-rw-r--r--app/src/main/res/layout/item_post_gallery_type.xml2
3 files changed, 49 insertions, 2 deletions
diff --git a/app/src/main/res/layout/item_post_card_2_gallery_type.xml b/app/src/main/res/layout/item_post_card_2_gallery_type.xml
index 5ad3f24b..1455d1fd 100644
--- a/app/src/main/res/layout/item_post_card_2_gallery_type.xml
+++ b/app/src/main/res/layout/item_post_card_2_gallery_type.xml
@@ -21,7 +21,7 @@
<FrameLayout
android:id="@+id/gallery_frame_layout_item_post_card_2_gallery_type"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">
diff --git a/app/src/main/res/layout/item_post_gallery_gallery_type.xml b/app/src/main/res/layout/item_post_gallery_gallery_type.xml
new file mode 100644
index 00000000..d1ee61b6
--- /dev/null
+++ b/app/src/main/res/layout/item_post_gallery_gallery_type.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"
+ app:cardElevation="2dp"
+ app:cardCornerRadius="8dp"
+ style="?attr/materialCardViewElevatedStyle">
+
+ <FrameLayout
+ android:id="@+id/gallery_frame_layout_item_post_gallery_gallery_type"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:visibility="gone">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/gallery_recycler_view_item_post_gallery_gallery_type"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" />
+
+ <com.libRG.CustomTextView
+ android:id="@+id/image_index_text_view_item_post_gallery_gallery_type"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:textSize="?attr/font_12"
+ android:fontFamily="?attr/font_family"
+ android:padding="4dp"
+ app:lib_setRadius="6dp"
+ app:lib_setRoundedView="true"
+ app:lib_setShape="rectangle" />
+
+ </FrameLayout>
+
+ <ImageView
+ android:id="@+id/image_view_no_preview_item_post_gallery_gallery_type"
+ android:layout_width="match_parent"
+ android:layout_height="150dp"
+ android:scaleType="center"
+ android:background="@drawable/thumbnail_compact_layout_rounded_edge"
+ android:visibility="gone" />
+
+</com.google.android.material.card.MaterialCardView> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_post_gallery_type.xml b/app/src/main/res/layout/item_post_gallery_type.xml
index a817cd40..13bd9517 100644
--- a/app/src/main/res/layout/item_post_gallery_type.xml
+++ b/app/src/main/res/layout/item_post_gallery_type.xml
@@ -198,7 +198,7 @@
<FrameLayout
android:id="@+id/gallery_frame_layout_item_post_gallery_type"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">