androidandroid-toolbarup-navigation

Space between Up Navigation and Toolbar title is too large


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


Solution

  • 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.