Adding “section dividers” to my layout?

前端 未结 5 892
渐次进展
渐次进展 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:08

    I was looking for the same issue. I found an easy way to tell the app that a texview is a section separator:

    
    

    The line:

    style="?android:attr/listSeparatorTextViewStyle"
    

    add the underline to the text and style it accordingli to the defaulf "Separator" theme.

提交回复
热议问题