From 083924964490f20c5d3871f4c80eca696b842fe4 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 9 Nov 2019 00:40:14 +0800 Subject: Compact post layout is available. Fixed WebView cannot be inflated on Android Lollipop. Tweak the comment item UI. --- app/src/main/res/layout/activity_login.xml | 2 +- .../layout/fragment_post_layot_bottom_sheet.xml | 47 +++ app/src/main/res/layout/item_comment.xml | 4 +- app/src/main/res/layout/item_post_compact.xml | 358 +++++++++++++++++++++ 4 files changed, 408 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml create mode 100644 app/src/main/res/layout/item_post_compact.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 904d3ab2..2145e703 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -22,7 +22,7 @@ - + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index ae22e5e5..ee85314e 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -89,8 +89,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" - android:layout_marginStart="32dp" - android:layout_marginEnd="32dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:layout_marginBottom="8dp" android:textColor="@color/primaryTextColor" android:textSize="?attr/content_font_default" /> diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml new file mode 100644 index 00000000..cdf3bd64 --- /dev/null +++ b/app/src/main/res/layout/item_post_compact.xml @@ -0,0 +1,358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3