Basically I am inflating a menu
public boolean onPrepareOptionsMenu(Menu menu) {
menu.clear();
globalMenu = menu;
getSupportMenuInflater().inflate(R.layout.menu_refresh, menu);
return super.onPrepareOptionsMenu(menu);
}
menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_refresh"
android:showAsAction="never"
android:title="@string/refresh"/>
<item
android:id="@+id/menu_24hours"
android:showAsAction="never"
android:title="@string/twentyfour_hours"/>
<item
android:id="@+id/menu_1week"
android:showAsAction="never"
android:title="@string/one_week"/>
<item
android:id="@+id/menu_1month"
android:showAsAction="never"
android:title="@string/one_month"/>
<item
android:id="@+id/menu_3month"
android:showAsAction="never"
android:title="@string/three_month"/>
<item
android:id="@+id/menu_6month"
android:showAsAction="never"
android:title="@string/six_month"/>
</menu>
whats happening, is that none of them are showing in 3 dots format.In ice cream sandwich you have to click the button menu on hardware, in nexus it shows 3 dots.. i need everywhere to have it as 3 dots, no device uniqueness.
However if i do this in my menu...
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_refresh"
android:showAsAction="always"
android:icon="@drawable/ic_action_refresh_default" />
</menu>
this shows up in actionbardsherlock on top, on all devices. no menu hardware key.