-1

I would like to place icon is upper left corner of Activity title bar. Also how do I widen the activity title bar? Thanks Is it possible to have button on left side that is menu so when you click it has menu item like logoff?

MuayThai
  • 441
  • 1
  • 5
  • 19

2 Answers2

1

if you are using toolbar it is done like this:

getSupportActionBar().setIcon(R.drawable.your_icon);
Chordin4tion
  • 984
  • 6
  • 15
1

In your Action bar what you can do is

getSupportActionBar().setIcon(R.drawable.icon);

and also you can set the logo in your manifest file

In AndroidManifest.xml add line:

android:logo="@drawable/icon"
Moubeen Farooq Khan
  • 2,875
  • 1
  • 11
  • 26