From 3a81ca17e864dd76d77d4a6bd41ccfdcc54bbe1e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 28 Oct 2019 21:17:09 +0800 Subject: Use FlowLayout to host all the information of a post in item_post and item_post_detail. --- app/src/main/res/layout/item_post.xml | 144 ++++++++++---------------- app/src/main/res/layout/item_post_detail.xml | 146 ++++++++++----------------- 2 files changed, 102 insertions(+), 188 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index c09582f5..c702e529 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -94,10 +94,13 @@ android:textSize="?attr/content_font_default" android:ellipsize="end" /> - + android:padding="16dp" + app:flChildSpacing="16dp" + app:flChildSpacingForLastRow="align" + app:flRowSpacing="8dp"> - - - - - - - - - - - - - - @@ -226,7 +151,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:layout_marginStart="16dp" android:textSize="?attr/font_12" android:textColor="@android:color/white" android:padding="4dp" @@ -237,7 +161,41 @@ app:lib_setRoundedView="true" app:lib_setShape="rectangle" /> - + + + + + + + + + - + android:padding="16dp" + app:flChildSpacing="16dp" + app:flChildSpacingForLastRow="align" + app:flRowSpacing="8dp"> - - - - - - - - - - - - - - @@ -219,7 +142,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:layout_marginStart="16dp" android:padding="4dp" android:textSize="?attr/font_12" android:textColor="@android:color/white" @@ -230,7 +152,41 @@ app:lib_setRoundedView="true" app:lib_setShape="rectangle" /> - + + + + + + + + +