From 11ac14a3f13c893ff9cd98d01abe586a3c794bd9 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 5 Oct 2018 14:28:14 +0800 Subject: Display a crosspost icon if the post is a crosspost. Hide the thumbtack icon if the post is not viewed in its subreddit. Tweak the post layout. Minor bugs fixed. --- .idea/assetWizardSettings.xml | 5 + .../infinityforreddit/MainActivity.java | 43 ++- .../infinityforreddit/ParsePost.java | 24 +- .../infinityforreddit/PostData.java | 17 +- .../infinityforreddit/PostFragment.java | 6 +- .../infinityforreddit/PostRecyclerViewAdapter.java | 38 +- .../infinityforreddit/ViewPostDetailActivity.java | 9 +- app/src/main/res/drawable/crosspost.xml | 17 + .../main/res/layout/activity_view_post_detail.xml | 16 +- .../main/res/layout/item_footer_progress_bar.xml | 6 +- app/src/main/res/layout/item_post.xml | 395 +++++++++++---------- 11 files changed, 319 insertions(+), 257 deletions(-) create mode 100644 app/src/main/res/drawable/crosspost.xml diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml index 89ed164f..36e96ff1 100644 --- a/.idea/assetWizardSettings.xml +++ b/.idea/assetWizardSettings.xml @@ -3,6 +3,11 @@