aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-05 09:18:30 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-05 09:18:30 +0000
commit7761d3875673e65cfb6d0cb496a781a9ee8f2db3 (patch)
treebe6f2acbbe06acf8ce5d857faeb054bdc082c23a /app/src/main/res
parent199690355be9fb461ceddc346a9cc68a75940aa1 (diff)
downloadinfinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.tar
infinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.tar.gz
infinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.tar.bz2
infinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.tar.lz
infinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.tar.xz
infinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.tar.zst
infinity-for-reddit-7761d3875673e65cfb6d0cb496a781a9ee8f2db3.zip
Sorting and refreshing in FilteredPostsActivity are available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_post.xml2
-rw-r--r--app/src/main/res/menu/filtered_posts_activity.xml17
2 files changed, 18 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml
index e3be0913..640f6c3f 100644
--- a/app/src/main/res/layout/item_post.xml
+++ b/app/src/main/res/layout/item_post.xml
@@ -102,7 +102,7 @@
android:layout_height="24dp"
android:layout_toEndOf="@id/type_text_view_item_post"
android:layout_centerVertical="true"
- android:visibility="gone"/>
+ android:visibility="gone" />
<TextView
android:id="@+id/gilded_number_text_view_item_post"
diff --git a/app/src/main/res/menu/filtered_posts_activity.xml b/app/src/main/res/menu/filtered_posts_activity.xml
new file mode 100644
index 00000000..ca53ec6c
--- /dev/null
+++ b/app/src/main/res/menu/filtered_posts_activity.xml
@@ -0,0 +1,17 @@
+<?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_sort_filtered_posts_activity"
+ android:orderInCategory="1"
+ android:title="@string/action_sort"
+ android:icon="@drawable/ic_outline_sort_24px"
+ app:showAsAction="ifRoom" />
+
+ <item
+ android:id="@+id/action_refresh_filtered_posts_activity"
+ android:orderInCategory="2"
+ android:title="@string/action_refresh"
+ android:icon="@drawable/ic_search_white_24dp"
+ app:showAsAction="never" />
+</menu> \ No newline at end of file