1

I can't seem to find a solution for this anywhere. I just want to make the logo clickable in my activity, but it seems the only way to do this is setHomeAsUpEnabled(true), but this makes the back icon visible and clickable. I want to make the logo clickable, why isn't this possible? Do I have to create a custom view for this?

b.lyte
  • 6,518
  • 4
  • 40
  • 51
  • try making the back button transparent. See here for more: http://stackoverflow.com/questions/9252354/how-to-customize-the-back-button-on-actionbar – johntzan Jan 25 '15 at 01:29
  • try use `setHomeAsUpIndicator` to change. – baitouwei Jan 25 '15 at 01:35
  • is it toolbar, look for the logo and handle it,, – Elltz Jan 25 '15 at 01:37
  • Looking at the appcompat Toolbar source you'll notice that there is an ImageView called mLogoView. It's unfortunately private so I can't set an onclicklistener on it. Set the back button to transparent doesn't work either. I would need to set the back button to the logo. This is quite a hacky solution. – b.lyte Jan 25 '15 at 18:55

0 Answers0