aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/menu
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-09-24 09:03:57 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-09-24 09:03:57 +0000
commitbfb311d75fbe704e9db5aae04ceeb91315fb3ba1 (patch)
treee0f76180bb532337d2e3a127fd2bd7646245873f /app/src/main/res/menu
parenta7d4485fc18452b3897a95b4de152707d9209a39 (diff)
downloadinfinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.tar
infinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.tar.gz
infinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.tar.bz2
infinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.tar.lz
infinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.tar.xz
infinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.tar.zst
infinity-for-reddit-bfb311d75fbe704e9db5aae04ceeb91315fb3ba1.zip
Add a feature which is refreshing the posts by clicking the refresh button. Minor bugs fixed. Rewrite some code.
Diffstat (limited to 'app/src/main/res/menu')
-rw-r--r--app/src/main/res/menu/main_activity.xml12
-rw-r--r--app/src/main/res/menu/view_subreddit_detail_activity.xml12
2 files changed, 24 insertions, 0 deletions
diff --git a/app/src/main/res/menu/main_activity.xml b/app/src/main/res/menu/main_activity.xml
new file mode 100644
index 00000000..ed6a2e33
--- /dev/null
+++ b/app/src/main/res/menu/main_activity.xml
@@ -0,0 +1,12 @@
+<?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"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:context="ml.docilealligator.infinityforreddit.MainActivity">
+ <item
+ android:id="@+id/action_refresh_main_activity"
+ android:orderInCategory="1"
+ android:title="@string/action_refresh"
+ android:icon="@drawable/ic_refresh_white_24dp"
+ app:showAsAction="always" />
+</menu> \ No newline at end of file
diff --git a/app/src/main/res/menu/view_subreddit_detail_activity.xml b/app/src/main/res/menu/view_subreddit_detail_activity.xml
new file mode 100644
index 00000000..aa3537f5
--- /dev/null
+++ b/app/src/main/res/menu/view_subreddit_detail_activity.xml
@@ -0,0 +1,12 @@
+<?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"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:context="ml.docilealligator.infinityforreddit.ViewSubredditDetailActivity">
+ <item
+ android:id="@+id/action_refresh_view_subreddit_detail_activity"
+ android:orderInCategory="1"
+ android:title="@string/action_refresh"
+ android:icon="@drawable/ic_refresh_white_24dp"
+ app:showAsAction="always" />
+</menu> \ No newline at end of file