From 7f8ca49190fdb4c2ac0acbf1f6cbcd235fe6d3ad Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 30 Jul 2018 23:27:52 +0800 Subject: Add the ViewSubredditActivity. Add a OnClickListener in the subscribed subreddits RecyclerView to lauch the ViewSubredditActivity. --- .../main/res/layout/activity_view_post_detail.xml | 1 + .../res/layout/activity_view_subreddit_detail.xml | 98 ++++++++++++++++++++++ .../res/layout/content_view_subreddit_detail.xml | 17 ++++ 3 files changed, 116 insertions(+) create mode 100644 app/src/main/res/layout/activity_view_subreddit_detail.xml create mode 100644 app/src/main/res/layout/content_view_subreddit_detail.xml (limited to 'app/src/main/res/layout') 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 694253e6..8f6627a7 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -107,6 +107,7 @@ android:id="@+id/nsfw_text_view_view_post_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:text="@string/nsfw" android:layout_alignParentEnd="true" android:layout_marginEnd="16dp" android:layout_marginLeft="16dp" diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml new file mode 100644 index 00000000..58b808f9 --- /dev/null +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/content_view_subreddit_detail.xml b/app/src/main/res/layout/content_view_subreddit_detail.xml new file mode 100644 index 00000000..c6334e7d --- /dev/null +++ b/app/src/main/res/layout/content_view_subreddit_detail.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file -- cgit v1.2.3