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
  • 6,634
  • 23
  • 93
  • 200

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
  • 374
  • 2
  • 4