From ff5a60c8276071db92e4a584f6a155fdb9048f8c Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 30 Jan 2020 20:38:35 +0800 Subject: Copying comments is now available. Some UI tweaks. --- app/src/main/res/drawable-night/ic_delete_24dp.xml | 9 +++ app/src/main/res/drawable-night/ic_edit_24dp.xml | 9 +++ app/src/main/res/drawable-night/ic_share_24dp.xml | 9 +++ app/src/main/res/drawable/ic_delete_24dp.xml | 9 +++ app/src/main/res/drawable/ic_edit_24dp.xml | 9 +++ app/src/main/res/drawable/ic_share_24dp.xml | 9 +++ .../layout/fragment_comment_more_bottom_sheet.xml | 86 ++++++++++++++++++++++ .../fragment_modify_comment_bottom_sheet.xml | 40 ---------- app/src/main/res/layout/item_comment.xml | 7 +- app/src/main/res/values/strings.xml | 3 + 10 files changed, 146 insertions(+), 44 deletions(-) create mode 100644 app/src/main/res/drawable-night/ic_delete_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_edit_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_share_24dp.xml create mode 100644 app/src/main/res/drawable/ic_delete_24dp.xml create mode 100644 app/src/main/res/drawable/ic_edit_24dp.xml create mode 100644 app/src/main/res/drawable/ic_share_24dp.xml create mode 100644 app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml delete mode 100644 app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable-night/ic_delete_24dp.xml b/app/src/main/res/drawable-night/ic_delete_24dp.xml new file mode 100644 index 00000000..4169cae5 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_delete_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_edit_24dp.xml b/app/src/main/res/drawable-night/ic_edit_24dp.xml new file mode 100644 index 00000000..7f32de65 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_edit_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_share_24dp.xml b/app/src/main/res/drawable-night/ic_share_24dp.xml new file mode 100644 index 00000000..cbe3d4aa --- /dev/null +++ b/app/src/main/res/drawable-night/ic_share_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_delete_24dp.xml b/app/src/main/res/drawable/ic_delete_24dp.xml new file mode 100644 index 00000000..aaf18eb9 --- /dev/null +++ b/app/src/main/res/drawable/ic_delete_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_edit_24dp.xml b/app/src/main/res/drawable/ic_edit_24dp.xml new file mode 100644 index 00000000..17a2a81f --- /dev/null +++ b/app/src/main/res/drawable/ic_edit_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_share_24dp.xml b/app/src/main/res/drawable/ic_share_24dp.xml new file mode 100644 index 00000000..82ddcec3 --- /dev/null +++ b/app/src/main/res/drawable/ic_share_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml new file mode 100644 index 00000000..397d8439 --- /dev/null +++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml b/app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml deleted file mode 100644 index 4bc3c547..00000000 --- a/app/src/main/res/layout/fragment_modify_comment_bottom_sheet.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - \ 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 faf11a07..c303efaa 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -154,7 +154,6 @@ android:clickable="true" android:focusable="true" android:src="@drawable/ic_more_vert_grey_24dp" - android:visibility="gone" app:layout_constraintEnd_toStartOf="@+id/expand_button_item_post_comment" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"/> @@ -198,11 +197,11 @@ android:clickable="true" android:focusable="true" android:src="@drawable/ic_reply_grey_24dp" - app:layout_constraintEnd_toStartOf="@id/share_button_item_post_comment" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"/> - + app:layout_constraintBottom_toBottomOf="parent"/>--> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2b7e673b..44e93567 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -411,4 +411,7 @@ Copy Raw Text Copy All Markdown Copy All Raw Text + + Save comment + Unsave comment -- cgit v1.2.3