android - How to remove padding from action bar logo? -
i've managed set logo action bar using these lines of code:
getsupportactionbar().setdisplayuselogoenabled(true); getsupportactionbar().setlogo(r.mipmap.ic_launcher); getsupportactionbar().setdisplayshowtitleenabled(false); //optional but there sort of padding @ right of logo. there way eliminate it?
use setcontentinsetsabsolute(int leftinset, int rightinset) on toolbar
the values in dp default it's set @ 16dp

Comments
Post a Comment