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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -