aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-07-28 05:38:50 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-07-28 05:38:50 +0000
commit0e6d4ae525d4b0727d9e131195f33ec74cff8861 (patch)
tree483146112d505d46a4cf9271abe35de0a23a7518 /app/src
parentaca6f47a949db608772c9be376ba74a98c6d6d40 (diff)
downloadinfinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.tar
infinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.tar.gz
infinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.tar.bz2
infinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.tar.lz
infinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.tar.xz
infinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.tar.zst
infinity-for-reddit-0e6d4ae525d4b0727d9e131195f33ec74cff8861.zip
Add RecyclerView for subscribed subreddits in navigation drawer and rewrite some code
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/SubredditData.java4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/SubscribedSubredditRecyclerViewAdapter.java4
-rw-r--r--app/src/main/res/drawable/ic_account_circle_grey_24dp.xml5
-rw-r--r--app/src/main/res/drawable/subreddit_default_icon.jpgbin0 -> 51471 bytes
-rw-r--r--app/src/main/res/layout/item_subscribed_subreddit.xml6
-rw-r--r--app/src/main/res/menu/activity_main_drawer.xml38
-rw-r--r--app/src/main/res/menu/main.xml9
7 files changed, 19 insertions, 47 deletions
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 @@
+<vector android:height="24dp" android:tint="#9E9E9E"
+ android:viewportHeight="24.0" android:viewportWidth="24.0"
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillColor="#FF000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,5c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zM12,19.2c-2.5,0 -4.71,-1.28 -6,-3.22 0.03,-1.99 4,-3.08 6,-3.08 1.99,0 5.97,1.09 6,3.08 -1.29,1.94 -3.5,3.22 -6,3.22z"/>
+</vector>
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
--- /dev/null
+++ b/app/src/main/res/drawable/subreddit_default_icon.jpg
Binary files 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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+</android.support.constraint.ConstraintLayout> \ 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 @@
-<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- tools:showIn="navigation_view">
-
- <group android:checkableBehavior="single">
- <item
- android:id="@+id/nav_camera"
- android:icon="@drawable/ic_menu_camera"
- android:title="Import" />
- <item
- android:id="@+id/nav_gallery"
- android:icon="@drawable/ic_menu_gallery"
- android:title="Gallery" />
- <item
- android:id="@+id/nav_slideshow"
- android:icon="@drawable/ic_menu_slideshow"
- android:title="Slideshow" />
- <item
- android:id="@+id/nav_manage"
- android:icon="@drawable/ic_menu_manage"
- android:title="Tools" />
- </group>
-
- <item android:title="Communicate">
- <menu>
- <item
- android:id="@+id/nav_share"
- android:icon="@drawable/ic_menu_share"
- android:title="Share" />
- <item
- android:id="@+id/nav_send"
- android:icon="@drawable/ic_menu_send"
- android:title="Send" />
- </menu>
- </item>
-
-</menu>
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 @@
-<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/action_settings"
- android:orderInCategory="100"
- android:title="@string/action_settings"
- app:showAsAction="never" />
-</menu>