Empty space between listview header and first item

后端 未结 6 2014
青春惊慌失措
青春惊慌失措 2021-02-01 15:11

I\'ve created an android application with a ListView. I\'ve added both a header and footer to the list. But when adding a divider/separator it also creates an empty space betwee

6条回答
  •  时光取名叫无心
    2021-02-01 15:20

    Didn't find a great solution.

    Set dividerHeight="0dp" and created my own dividers manually - either directly in the layout XML or dynamically in the adapter if you need more precise control.

提交回复
热议问题