From 248aca0fb9f64eb66ec6214f60f51be3de181899 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 19 Feb 2020 09:59:12 +0800 Subject: Start implementing showing subscribed subreddits in the nav drawer. Use a RecyclerView to display all the items in the nav drawer. --- app/src/main/res/layout/activity_main.xml | 11 +++++++-- .../main/res/layout/item_nav_drawer_divider.xml | 5 ++++ .../layout/item_nav_drawer_menu_group_title.xml | 7 ++++++ .../main/res/layout/item_nav_drawer_menu_item.xml | 12 ++++++++++ .../layout/item_nav_drawer_subscribed_thing.xml | 27 ++++++++++++++++++++++ 5 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/layout/item_nav_drawer_divider.xml create mode 100644 app/src/main/res/layout/item_nav_drawer_menu_group_title.xml create mode 100644 app/src/main/res/layout/item_nav_drawer_menu_item.xml create mode 100644 app/src/main/res/layout/item_nav_drawer_subscribed_thing.xml (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 798dd9c3..a47d4fc8 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -20,7 +20,14 @@ android:layout_gravity="start" android:background="?attr/backgroundColor"> - + + diff --git a/app/src/main/res/layout/item_nav_drawer_divider.xml b/app/src/main/res/layout/item_nav_drawer_divider.xml new file mode 100644 index 00000000..c0e73dff --- /dev/null +++ b/app/src/main/res/layout/item_nav_drawer_divider.xml @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_nav_drawer_menu_group_title.xml b/app/src/main/res/layout/item_nav_drawer_menu_group_title.xml new file mode 100644 index 00000000..5db89c04 --- /dev/null +++ b/app/src/main/res/layout/item_nav_drawer_menu_group_title.xml @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_nav_drawer_menu_item.xml b/app/src/main/res/layout/item_nav_drawer_menu_item.xml new file mode 100644 index 00000000..4e9f911f --- /dev/null +++ b/app/src/main/res/layout/item_nav_drawer_menu_item.xml @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_nav_drawer_subscribed_thing.xml b/app/src/main/res/layout/item_nav_drawer_subscribed_thing.xml new file mode 100644 index 00000000..0dc934fe --- /dev/null +++ b/app/src/main/res/layout/item_nav_drawer_subscribed_thing.xml @@ -0,0 +1,27 @@ + + + + + + + + \ No newline at end of file -- cgit v1.2.3