Reputation: 2158
The action mode has a menu with one menuitem which is specialized as follows:
menu.add(0,1,1,R.string.kitapliga_ekle)
.setIcon(R.drawable.plus_icon)
.setShowAsAction(
com.actionbarsherlock.view.MenuItem.SHOW_AS_ACTION_ALWAYS |
com.actionbarsherlock.view.MenuItem.SHOW_AS_ACTION_WITH_TEXT);
This is how it looks like:
I wonder if I can swap icon and text. also is margin between them possible?
Upvotes: 0
Views: 159
Reputation: 30611
I believe it would be easier to create a custom layout in XML for your ActionBar
and then set it using ActionBar.setCustomView()
.
Upvotes: 1