我怎么可以删除导航视图的不必要的顶部填充?视图、不必要、我怎么

由网友(只是嘲笑固执的自己)分享简介:有一个在这个图片中显示的标题和第一个项目之间的不必要的顶部填充。There's an unnecessary top padding between the header and the first item shown in this picture.它是怎样被删除?您可以在这里找到源头code:https://...

有一个在这个图片中显示的标题和第一个项目之间的不必要的顶部填充。

There's an unnecessary top padding between the header and the first item shown in this picture.

它是怎样被删除?

您可以在这里找到源头code: https://github.com/chrisbanes/cheesesquare

you can find the source code here: https://github.com/chrisbanes/cheesesquare

推荐答案

NavigationView 寻求匹配材料设计的规格的抽屉式导航这说明内容区域之间的8DP空间。一般来说,没有办法覆盖 NavigationView 具体打破规范。

NavigationView seeks to match the material design specs for the navigation drawer which state an 8dp space between content areas. Generally there are no ways to override NavigationView to specifically break the specifications.

阅读全文

相关推荐

最新文章