I am building an Android app and want to have a button always visible on the actionBar. I followed this guide and others, but none of them seem to solve my problem (although they are very close I guess...).
I have the package "app" and use app:showAsAction="always"
. No error is shown, but no button on the bar as well. When I change it to android:showAsAction="always"
the button appears on the bar, but AndroidStudio tells me I should go for "app:showAsAction with appCompat...".
I have a custom theme with parent="@android:style/Theme.Holo.Light.DarkActionBar">
and for the bar itself: parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
.
Should I change something and get app:showAsAction
working, or ignore AndroidStudio error message and go for android:showAsAction
?