aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-07-16 09:06:34 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-07-16 09:06:34 +0000
commit116ce0bb24159d89d50296454214231bbd795de7 (patch)
treec297f99f50e349466b58a6e9058550ecbeef35cb /app/src/main/res/layout
parente0212985f806088c1ae2dc26ad75001ad5ce9549 (diff)
downloadinfinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.tar
infinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.tar.gz
infinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.tar.bz2
infinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.tar.lz
infinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.tar.xz
infinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.tar.zst
infinity-for-reddit-116ce0bb24159d89d50296454214231bbd795de7.zip
Add a FAB in ViewSubredditDetailActivity to submit posts. Display the current subreddit in PostXXXActivity if they are opened from ViewSubredditDetailActivity.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_view_subreddit_detail.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml
index d7ef40a3..00563d1b 100644
--- a/app/src/main/res/layout/activity_view_subreddit_detail.xml
+++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml
@@ -119,4 +119,12 @@
<include layout="@layout/content_view_subreddit_detail" />
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fab_view_subreddit_detail_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|end"
+ android:layout_margin="@dimen/fab_margin"
+ app:srcCompat="@drawable/baseline_add_white_24" />
+
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file