From e3653eb503f4396903bcdd1423510f7c4893dde9 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 28 Jul 2018 13:45:01 +0800 Subject: Add a RecyclerView for subscribed subreddits in navigation drawer, rewrite some code and minor bugs fixed --- app/src/main/res/layout/activity_main.xml | 56 ++++++++++++++++++++-- .../main/res/layout/item_subscribed_subreddit.xml | 24 ++++++++-- 2 files changed, 74 insertions(+), 6 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index db65bf75..8d43bd79 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -18,9 +18,59 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" - android:fitsSystemWindows="true" - app:headerLayout="@layout/nav_header_main" - app:menu="@menu/activity_main_drawer" /> + android:fitsSystemWindows="true"> + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_subscribed_subreddit.xml b/app/src/main/res/layout/item_subscribed_subreddit.xml index d8fb3247..3795aa62 100644 --- a/app/src/main/res/layout/item_subscribed_subreddit.xml +++ b/app/src/main/res/layout/item_subscribed_subreddit.xml @@ -1,6 +1,24 @@ - + android:layout_height="wrap_content" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> - \ No newline at end of file + + + + + \ No newline at end of file -- cgit v1.2.3