szaske
szaske

Reputation: 2027

How to adjust Collapsing Toolbar left margin?

I'm using a Collapsing toolbar, and when collapsed it looks like this...

enter image description here

I've been trying to figure out how to control the left margin, marked in the picture in yellow. Some here suggest I use app:contentInsetStart="0dp" but that does nothing for me. Anyone got a clue? I've tried just about everything, on the toolbar, CollapsingToolbar and AppBarLayout.

Upvotes: 1

Views: 865

Answers (1)

szaske
szaske

Reputation: 2027

Thanks to Mike M for supplying the answer. In your layout XML, set your toolbar to

app:contentInsetStartWithNavigation="0dp"

Upvotes: 6

Related Questions