Add the search view in the toolbar

This commit is contained in:
Bradlee Speice 2015-01-03 16:23:02 -05:00
parent 08a2bdd044
commit e3651f9e31
3 changed files with 8 additions and 7 deletions

View File

@ -1,7 +0,0 @@
<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:title="@string/action_settings"
android:orderInCategory="100"
app:showAsAction="never" />
</menu>

View File

@ -3,6 +3,13 @@
xmlns:tools="http://schemas.android.com/tools"
tools:context="org.bspeice.minimalbible.MainActivity">
<item
android:id="@+id/action_search"
android:orderInCategory="100"
android:title="@string/action_search_title"
app:actionViewClass="android.support.v7.widget.SearchView"
app:showAsAction="ifRoom" />
<item
android:id="@+id/action_settings"
android:orderInCategory="100"

View File

@ -13,5 +13,6 @@
<string name="contact_developer_address">bspeice.nc@gmail.com</string>
<string name="contact_developer_subject">MinimalBible Feedback</string>
<string name="action_search_title">Search</string>
</resources>