Unwanted Padding/Margin at the beginning of a custom toolbar

Viewed 593

I have a fairly complex custom toolbar (android.support.v7.widget.Toolbar) that’s created via xml:

(e.g. dumbed down example)

<android.support.v7.widget.Toolbar>
   <ImageView/>
   <TextView/>
 </android.support.v7.widget.Toolbar>

This works well except I end up with margin/padding to the left of my ImageView. toolbar.setNavigationIcon(null) doesn’t change anything. Changing the padding and margin doesn't seem to do anything. I’m not sure where that’s coming from.

How do I get rid of this?

toolbar with spacing example

2 Answers
Related