问题
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
OBS: When I enable the app icon in the toolbar, it almost has no space between it and the title
回答1:
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.
来源:https://stackoverflow.com/questions/39380934/space-between-up-navigation-and-toolbar-title-is-too-large