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.
Extends FragmentActivity
app:showAsAction
and tryandroid:showAsAction="ifRoom"
. It's perfect working in my case.