diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-15 14:47:21 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-15 14:47:21 +0000 |
commit | b9ecbc2a105828326e8996229eb57640f248b1ce (patch) | |
tree | 98035e72f718636ec6933164fea1d5c783fb4ecb /app/src/main/res/layout | |
parent | 48a65a4b2fba95a1aa76250afefefdc9829fa653 (diff) | |
download | infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.tar infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.tar.gz infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.tar.bz2 infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.tar.lz infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.tar.xz infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.tar.zst infinity-for-reddit-b9ecbc2a105828326e8996229eb57640f248b1ce.zip |
Continue adding support for submitting gallery posts.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/activity_post_gallery.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_post_type_bottom_sheet.xml | 19 |
2 files changed, 22 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_post_gallery.xml b/app/src/main/res/layout/activity_post_gallery.xml index e573b945..5cf045cb 100644 --- a/app/src/main/res/layout/activity_post_gallery.xml +++ b/app/src/main/res/layout/activity_post_gallery.xml @@ -190,7 +190,9 @@ <androidx.recyclerview.widget.RecyclerView android:id="@+id/images_recycler_view_post_gallery_activity" android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" + app:spanCount="2" /> </LinearLayout> diff --git a/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml index e89e36a2..7138d814 100644 --- a/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml @@ -86,6 +86,25 @@ android:focusable="true" android:background="?attr/selectableItemBackground" /> + <TextView + android:id="@+id/gallery_type_linear_layout_post_type_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/bottom_sheet_post_gallery" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + android:drawableStart="@drawable/ic_gallery_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + </LinearLayout> </androidx.core.widget.NestedScrollView>
\ No newline at end of file |