0

When I do the following

ActionBar  actBar = getSupportActionBar();
actBar.setDisplayShowHomeEnabled(true);
actBar.setIcon(R.drawable.noconnection);

The icon is left of Title. I like to have at right end of the bar at "Here" text position. How can I do in Android? enter image description here

batuman
  • 7,066
  • 26
  • 107
  • 229

1 Answers1

0

If you are intending to add icon not button on action bar so mark menu option as disabled by setting android:enabled="false" and show it always by setting android:showAsAction="always"

Chetan Pawar
  • 404
  • 3
  • 4