I use the application compatibility theme in my application, and on the action bar I have a menu with one item that should appear as an icon, but instead I get a menu button like this

Here is my xml menu code:
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/action_play" android:icon="@drawable/play" android:orderInCategory="100" android:showAsAction="always"/> </menu>
And here is the code on how I initialize the action bar:
getSupportActionBar().setHomeButtonEnabled(true); getSupportActionBar().setTitle(title); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(false);
and show the menu:
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.names, menu); playStop = menu.findItem(R.id.action_play); return true; }
So can someone help me display the menu item as it should?
thanks
source share