How I can remove the unnecessary top padding of the Navigation view?

前端 未结 5 1812
面向向阳花
面向向阳花 2020-11-28 10:08

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

\"enter

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 10:21

    You can override predefined dimensions at your dimens.xml as;

    0dp
    0dp
    0dp
    

    Other possible values are here: https://github.com/android/platform_frameworks_support/blob/master/design/res/values/dimens.xml

提交回复
热议问题