Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Space between Up Navigation and Toolbar title is too large [duplicate]

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

like image 303
Fernando Santos Avatar asked Jan 06 '23 09:01

Fernando Santos


1 Answers

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.

like image 79
Somesh Kumar Avatar answered Jan 14 '23 07:01

Somesh Kumar