Reputation: 53600
There are lots of questions regard my problem but I believe I'm following those answers but still when I launch the application my item is not visible (it's under over flow menu).
This my menu.xml
<menu
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".MainActivity">
<item
android:id="@+id/action_sort_asc"
app:showAsAction="always"
android:title="@string/action_sort"
android:icon="@drawable/ic_arrow_down"/>
...
MainActivity
extended Activity
and not ActionBarActivity
. Although Android studio preview shows it in Actionbar (and other items inside overflow), however, this item is not visible when I launch the app.
Any idea would be appreciated. Thanks.
Upvotes: 1
Views: 597
Reputation: 91
I faced this problem once , try adding android:showAsAction="always" too
Upvotes: 3