mdehghani February 2016
How to remove padding from action bar logo?
I've managed to set a logo for action bar using these lines of code:
but there is always some sort of padding at the right of the logo. Is there a way to eliminate it?
Pztar February 2016
setContentInsetsAbsolute(int leftInset, int rightInset) on your toolbar
The values are in
dp by default it's set at
Helix February 2016
My typical solution when I want to go above and beyond what the ActionBar is designed for is to hide the ActionBar completely using
and instead implement a relative layout within the activity's layout file that follows the guidelines of an ActionBar as outlined by google HERE
This provides the flexibility to alter the appearance to whatever degree you'd like while maintaining the graphical appearance of Material Design.
Asked in February 2016
Viewed 2,421 times
Answered 2 times
Leave an answer
Quote of the day: live life