From 0e6d4ae525d4b0727d9e131195f33ec74cff8861 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 28 Jul 2018 13:38:50 +0800 Subject: Add RecyclerView for subscribed subreddits in navigation drawer and rewrite some code --- .../infinityforreddit/SubredditData.java | 4 +++ .../SubscribedSubredditRecyclerViewAdapter.java | 4 +++ .../res/drawable/ic_account_circle_grey_24dp.xml | 5 +++ .../main/res/drawable/subreddit_default_icon.jpg | Bin 0 -> 51471 bytes .../main/res/layout/item_subscribed_subreddit.xml | 6 ++++ app/src/main/res/menu/activity_main_drawer.xml | 38 --------------------- app/src/main/res/menu/main.xml | 9 ----- 7 files changed, 19 insertions(+), 47 deletions(-) create mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/SubredditData.java create mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/SubscribedSubredditRecyclerViewAdapter.java create mode 100644 app/src/main/res/drawable/ic_account_circle_grey_24dp.xml create mode 100644 app/src/main/res/drawable/subreddit_default_icon.jpg create mode 100644 app/src/main/res/layout/item_subscribed_subreddit.xml delete mode 100644 app/src/main/res/menu/activity_main_drawer.xml delete mode 100644 app/src/main/res/menu/main.xml (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/SubredditData.java b/app/src/main/java/ml/docilealligator/infinityforreddit/SubredditData.java new file mode 100644 index 00000000..418fa4de --- /dev/null +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/SubredditData.java @@ -0,0 +1,4 @@ +package ml.docilealligator.infinityforreddit; + +class SubredditData { +} diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/SubscribedSubredditRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/SubscribedSubredditRecyclerViewAdapter.java new file mode 100644 index 00000000..463e14d7 --- /dev/null +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/SubscribedSubredditRecyclerViewAdapter.java @@ -0,0 +1,4 @@ +package ml.docilealligator.infinityforreddit; + +class SubscribedSubredditRecyclerViewAdapter { +} diff --git a/app/src/main/res/drawable/ic_account_circle_grey_24dp.xml b/app/src/main/res/drawable/ic_account_circle_grey_24dp.xml new file mode 100644 index 00000000..070d1d17 --- /dev/null +++ b/app/src/main/res/drawable/ic_account_circle_grey_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/subreddit_default_icon.jpg b/app/src/main/res/drawable/subreddit_default_icon.jpg new file mode 100644 index 00000000..4e9bc2fc Binary files /dev/null and b/app/src/main/res/drawable/subreddit_default_icon.jpg differ diff --git a/app/src/main/res/layout/item_subscribed_subreddit.xml b/app/src/main/res/layout/item_subscribed_subreddit.xml new file mode 100644 index 00000000..d8fb3247 --- /dev/null +++ b/app/src/main/res/layout/item_subscribed_subreddit.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/app/src/main/res/menu/activity_main_drawer.xml deleted file mode 100644 index a30626e5..00000000 --- a/app/src/main/res/menu/activity_main_drawer.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/menu/main.xml b/app/src/main/res/menu/main.xml deleted file mode 100644 index a2411e31..00000000 --- a/app/src/main/res/menu/main.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - -- cgit v1.2.3