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

跟風遠走 提交于 2019-12-10 15:55:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!