diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-02-22 05:34:24 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-02-22 05:34:24 +0000 |
commit | 1293eac5c84340c4bdb4c9bef283de3e2710c7da (patch) | |
tree | fa2b8679c49066122436eb685971adf764057e98 /app/src/main/res/menu | |
parent | 82d97cf73208f3f187b965fca4460f68af33f6b7 (diff) | |
download | infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.gz infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.bz2 infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.lz infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.xz infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.zst infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.zip |
Add a search view in MainActivity and add a SearchActivity.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/menu/main_activity.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_search.xml | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/app/src/main/res/menu/main_activity.xml b/app/src/main/res/menu/main_activity.xml index 2be22f5f..2a4357aa 100644 --- a/app/src/main/res/menu/main_activity.xml +++ b/app/src/main/res/menu/main_activity.xml @@ -5,8 +5,15 @@ tools:context="ml.docilealligator.infinityforreddit.MainActivity"> <item android:id="@+id/action_refresh_main_activity" - android:orderInCategory="1" + android:orderInCategory="2" android:title="@string/action_refresh" android:icon="@drawable/ic_refresh_white_24dp" app:showAsAction="never" /> + + <item + android:id="@+id/action_search_main_activity" + android:orderInCategory="1" + android:title="@string/action_search" + android:icon="@drawable/ic_search_white_24dp" + app:showAsAction="always" /> </menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/menu_search.xml b/app/src/main/res/menu/menu_search.xml new file mode 100644 index 00000000..afd34627 --- /dev/null +++ b/app/src/main/res/menu/menu_search.xml @@ -0,0 +1,10 @@ +<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.SearchActivity"> + <item + android:id="@+id/action_search_search_activity" + android:orderInCategory="1" + android:title="@string/action_search" + app:showAsAction="always" /> +</menu> |