aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-16 12:32:05 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-16 12:32:05 +0000
commitb382ebecc3703569fff15d93bba90ad36f1f1298 (patch)
treef3e041469f332fcd505612323fcb16461fb38f72 /app/src/main/res
parent89704cd6523cbd751a88a5c43c36e4958f44e178 (diff)
downloadinfinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.tar
infinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.tar.gz
infinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.tar.bz2
infinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.tar.lz
infinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.tar.xz
infinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.tar.zst
infinity-for-reddit-b382ebecc3703569fff15d93bba90ad36f1f1298.zip
Center the FloatingActionButton in PostGalleryActivity.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/activity_post_gallery.xml1
-rw-r--r--app/src/main/res/layout/item_reddit_gallery_submission_add_image.xml11
2 files changed, 7 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_post_gallery.xml b/app/src/main/res/layout/activity_post_gallery.xml
index 5cf045cb..80f87dc1 100644
--- a/app/src/main/res/layout/activity_post_gallery.xml
+++ b/app/src/main/res/layout/activity_post_gallery.xml
@@ -191,6 +191,7 @@
android:id="@+id/images_recycler_view_post_gallery_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:padding="16dp"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="2" />
diff --git a/app/src/main/res/layout/item_reddit_gallery_submission_add_image.xml b/app/src/main/res/layout/item_reddit_gallery_submission_add_image.xml
index a1f55806..ebb89953 100644
--- a/app/src/main/res/layout/item_reddit_gallery_submission_add_image.xml
+++ b/app/src/main/res/layout/item_reddit_gallery_submission_add_image.xml
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_item_gallery_submission_add_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:src="@drawable/ic_outline_select_photo_24dp" />
+ android:src="@drawable/ic_outline_select_photo_24dp"
+ android:layout_gravity="center" />
-</LinearLayout> \ No newline at end of file
+</FrameLayout> \ No newline at end of file