Adding “section dividers” to my layout?

前端 未结 5 905
渐次进展
渐次进展 2020-12-24 15:33

The Android Design - Lists page describes \"section dividers\". I\'m aware you can use addHeaderView() a ListView for a similar effect. I would lik

5条回答
  •  误落风尘
    2020-12-24 16:19

    TextView 2dp in height and width = match parent and set the background color as the color you want the line to be.

    You can do vertical as well by reversing the two settings.

提交回复
热议问题