From d0faebbab94fff13a657311b286419619200663e Mon Sep 17 00:00:00 2001 From: Hermes Junior Date: Sun, 29 Mar 2020 05:20:52 +0200 Subject: Add hidden comment toolbar feature. --- app/src/main/res/layout/item_comment.xml | 16 ++++++++++++++-- app/src/main/res/values/strings.xml | 2 ++ app/src/main/res/xml/interface_preference.xml | 10 ++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index dfefe3d1..535e6fd6 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -21,7 +21,8 @@ android:layout_height="wrap_content" android:layout_marginTop="12dp" android:layout_marginBottom="12dp" - android:orientation="vertical"> + android:orientation="vertical" + android:animateLayoutChanges="true"> + + + app:constraint_referenced_ids="top_score_text_view_item_post_comment" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a05fb242..67519d2f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -314,6 +314,8 @@ Confirm to Exit Show Top-level Comments First Show Comment Divider + Click to Show/Hide Comment Toolbar + Comment Toolbar Hidden by Default Show Absolute Number of Votes Show Elapsed Time in Posts and Comments Default Post Layout diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 7b21020e..0ddedb98 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -51,6 +51,16 @@ app:key="show_comment_divider" app:title="@string/settings_show_comment_divider_title" /> + + + +