After 2 days of struggling with the new API 21 Toolbar and appCompat_v7, I think I found a bug on it. If you have 2 actions on your menu like this:
-
Per the Action Bar training, you have to use the app:showAsAction
attributes rather than the android:showAsAction
attribute:
Notice that the showAsAction attribute above uses a custom namespace defined in the
tag. This is necessary when using any XML attributes defined by the support library, because these attributes do not exist in the Android framework on older devices. So you must use your own namespace as a prefix for all attributes defined by the support library.
So your menu file should look like: