From 5e401a6a96f4b83a79685907a6bee4997ff7e183 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 29 Jan 2020 12:43:57 +0800 Subject: Copy post title and content in ViewPostDetailActivity. --- .../main/res/layout/copy_text_material_dialog.xml | 19 ++++++ .../res/layout/fragment_copy_text_bottom_sheet.xml | 77 ++++++++++++++++++++++ app/src/main/res/layout/item_post_detail.xml | 6 +- 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/layout/copy_text_material_dialog.xml create mode 100644 app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/copy_text_material_dialog.xml b/app/src/main/res/layout/copy_text_material_dialog.xml new file mode 100644 index 00000000..a8dfb7a5 --- /dev/null +++ b/app/src/main/res/layout/copy_text_material_dialog.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml b/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml new file mode 100644 index 00000000..43044ca2 --- /dev/null +++ b/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml index e23da92c..1ccdf2a1 100644 --- a/app/src/main/res/layout/item_post_detail.xml +++ b/app/src/main/res/layout/item_post_detail.xml @@ -79,7 +79,11 @@ android:paddingStart="16dp" android:paddingEnd="16dp" android:textColor="@color/primaryTextColor" - android:textSize="?attr/title_font_18" /> + android:textSize="?attr/title_font_18" + android:textIsSelectable="true" + android:enabled="true" + android:focusable="true" + android:longClickable="true" />