Why do I get an aapt.exe has stopped working
error when I put this code in my res/menu/menu.xml
file? by the way, this comes directly from android developer website
XML:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Search, should appear as action button -->
<item android:id="@+id/action_search"
android:icon="@drawable/ic_action_search"
android:title="@string/action_search"
android:showAsAction="ifRoom" />
<!-- Settings, should always be in the overflow -->
<item android:id="@+id/action_settings"
android:title="@string/action_settings"
android:showAsAction="never" />
</menu>
I would like to have the search button always visible and I would like to have the settings button? I want 2 or more items in the xml, which I can't do.