From c00aaf04b9c93201a6555f9756de33862a70485e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 20 Feb 2019 22:13:26 +0800 Subject: Temporarily use the old way to load comments instead of Paging library. Load more parent-level comments once. Loading comments of comments is now working. --- .../main/res/layout/activity_view_post_detail.xml | 2 +- app/src/main/res/layout/item_comment.xml | 129 +++++++++++++++++++++ app/src/main/res/layout/item_post_comment.xml | 129 --------------------- app/src/main/res/values/strings.xml | 1 + 4 files changed, 131 insertions(+), 130 deletions(-) create mode 100644 app/src/main/res/layout/item_comment.xml delete mode 100644 app/src/main/res/layout/item_post_comment.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index e32ac9ab..103edf40 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -293,7 +293,7 @@ android:textColor="#000000" android:textSize="18sp" /> - diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml new file mode 100644 index 00000000..81748bbd --- /dev/null +++ b/app/src/main/res/layout/item_comment.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_comment.xml b/app/src/main/res/layout/item_post_comment.xml deleted file mode 100644 index 81748bbd..00000000 --- a/app/src/main/res/layout/item_post_comment.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c42202ca..486fd853 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -15,6 +15,7 @@ Cannot load posts Error loading comments + Error loading more comments Retry Comments No comments yet. Write a comment? -- cgit v1.2.3