Space between Up Navigation and Toolbar title is t

2019-06-25 09:27发布

This question already has an answer here:

Does anyone knows why is it happening?

The first one is how it's look like and the second one is how I want it to look like

That's how it's look like

That's how I want it to look like

OBS: When I enable the app icon in the toolbar, it almost has no space between it and the title

1条回答
ゆ 、 Hurt°
2楼-- · 2019-06-25 10:16

Yeah, that happening with everyone using v24.0.0 and above support library version.

Toolbar title has an extra 16dp padding since version 24.0.0 to match material design spec.

All you need to do is set app:contentInsetStartWithNavigation="0dp"to toolbar view.

查看更多
登录 后发表回答