Adding “section dividers” to my layout?

前端 未结 5 897
渐次进展
渐次进展 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条回答
  •  Happy的楠姐
    2020-12-24 16:09

    The solution ended up having an includable layout called util_horizontal_line_section.xml:

    
    
    
    

    With the sectionSeparatorColour entry in values/colors.xml:

    #a0a0a0
    

    Includable via:

    
    

提交回复
热议问题