Is there any easy way to change the home icon layout (margins, padding, background) in ActionBarSherlock that isn’t a total hack? Right now, in onCreate, I am essentially finding the home icon by id, and setting the params. This works ok, but in a situation where I have an expandable view, and expanding it triggers the creation of a new, separate homeview, I would have to figure out how to manipulate that as well.
I am getting into the territory where I have to start subclassing the abs classes just to accomplish this. Is there an easier way?
You can try modifying
abs__homeImageView parameters in theabs__action_bar_home.xmlfromres/layoutin the ABS sources.Having said that, it’s, probably, not a very good idea to modify home icon layout..