Separator (divider) after last item of ListView

前端 未结 6 2061
再見小時候
再見小時候 2021-01-31 01:46

When I create a simple layout with only a ListView in it, there is no separator displayed after the last item, which looks a bit ugly.



        
6条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 02:33

    I do something similar to what @Natix describes, but instead of messing with the containing layout of the list I simply add the empty view as a footer on the list via ListView.addFooterView()

提交回复
热议问题