Center the FloatingActionButton in PostGalleryActivity.

This commit is contained in:
Alex Ning
2021-07-16 20:32:05 +08:00
parent 89704cd652
commit b382ebecc3
3 changed files with 21 additions and 6 deletions

View File

@@ -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" />

View File

@@ -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>
</FrameLayout>