diff options
author | Nils Griebner <nils@nils-griebner.de> | 2018-06-13 20:56:31 +0300 |
---|---|---|
committer | Nils Griebner <nils@nils-griebner.de> | 2018-06-13 20:56:31 +0300 |
commit | a779a65b80e058d009edd1afb617d2583a7ccf18 (patch) | |
tree | 9ab6fb2b786a3267e10868a71cb4672aae81ac5f /News-Android-App | |
parent | 96efaa7d7eaca737d42c6340f7e7cffd0bba8f84 (diff) |
Add search item to actionbar
Diffstat (limited to 'News-Android-App')
-rw-r--r-- | News-Android-App/src/main/res/drawable/ic_search_black_24dp.xml | 9 | ||||
-rw-r--r-- | News-Android-App/src/main/res/menu/news_reader.xml | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/News-Android-App/src/main/res/drawable/ic_search_black_24dp.xml b/News-Android-App/src/main/res/drawable/ic_search_black_24dp.xml new file mode 100644 index 00000000..affc7ba2 --- /dev/null +++ b/News-Android-App/src/main/res/drawable/ic_search_black_24dp.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/> +</vector> diff --git a/News-Android-App/src/main/res/menu/news_reader.xml b/News-Android-App/src/main/res/menu/news_reader.xml index 6b7c31cb..91ae9861 100644 --- a/News-Android-App/src/main/res/menu/news_reader.xml +++ b/News-Android-App/src/main/res/menu/news_reader.xml @@ -7,6 +7,11 @@ android:icon="@drawable/ic_action_refresh" app:showAsAction="never" /> + <item + android:id="@+id/app_bar_search" + android:actionViewClass="android.widget.SearchView" + android:icon="@drawable/ic_search_black_24dp" + android:title="Search" /> <item android:id="@+id/menu_StartImageCaching" android:title="@string/menu_StartImageCaching" android:orderInCategory="95" |