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?

screenshot

use setcontentinsetsabsolute(int leftinset, int rightinset) on toolbar

the values in dp default it's set @ 16dp


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -