Empty space between listview header and first item

后端 未结 6 2009
青春惊慌失措
青春惊慌失措 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:37

    In getview method you can check if the item is first or last and set custom devider which will be of 0 height or single pixel height of transparent color.

提交回复
热议问题