After switching to toolbar there is a problem with menu icons. Although I set for a menu item android:showAsAction=\"always\" it does not show the icon, I can only find it c
Replace android:showAsAction
with app:showAsAction
. You will also need to add xmlns:app="http://schemas.android.com/apk/res-auto"
alongside your existing xmlns
item in your root element.
With AppCompat there is a little change. If you are running lint it will complain about it. Type this:
<?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/someId"
android:title="@string/someText"
app:showAsAction="always"/>
</menu>
You need to declare the "app" namespace and reference it.