Separator (divider) after last item of ListView

前端 未结 6 1969
再見小時候
再見小時候 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

    The answer is very simple: you should change android:layout_height="wrap_content" to android:layout_height="match_parent" in your ListView.

    You can probably guess why this happens.

提交回复
热议问题