From 50a75ea4f9bc7d3bccfa5c00db915b5397ba3430 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 18 Sep 2020 12:13:17 +0800 Subject: Support Markdown bottom bar in EditCommentActivity, EditPostActivity and PostTextActivity. --- app/src/main/res/layout/activity_edit_comment.xml | 38 +++- app/src/main/res/layout/activity_edit_post.xml | 97 ++++---- app/src/main/res/layout/activity_post_text.xml | 265 ++++++++++++---------- 3 files changed, 219 insertions(+), 181 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_edit_comment.xml b/app/src/main/res/layout/activity_edit_comment.xml index ba239230..740aad93 100644 --- a/app/src/main/res/layout/activity_edit_comment.xml +++ b/app/src/main/res/layout/activity_edit_comment.xml @@ -23,18 +23,34 @@ - + android:orientation="vertical" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_edit_post.xml b/app/src/main/res/layout/activity_edit_post.xml index 5d124696..a7d0078f 100644 --- a/app/src/main/res/layout/activity_edit_post.xml +++ b/app/src/main/res/layout/activity_edit_post.xml @@ -13,65 +13,72 @@ android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> - - - - - + android:layout_height="wrap_content" + android:minHeight="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator" /> - - + android:layout_height="0dp" + android:layout_weight="1"> - + android:layout_height="match_parent" + android:orientation="vertical"> - + - + + + + + + + + + - + - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_post_text.xml b/app/src/main/res/layout/activity_post_text.xml index 67ba4234..d9b02754 100644 --- a/app/src/main/res/layout/activity_post_text.xml +++ b/app/src/main/res/layout/activity_post_text.xml @@ -23,148 +23,163 @@ - - - - - - - - - -