我怎么可以删除导航视图的不必要的顶部填充? [英] How I can remove the unnecessary top padding of the Navigation view?

本文介绍了我怎么可以删除导航视图的不必要的顶部填充?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

材料设计规范

这篇关于我怎么可以删除导航视图的不必要的顶部填充?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆