How to change background color of selected items in ListView?

后端 未结 3 961
情深已故
情深已故 2020-12-04 02:26

i\'ve seen many simillar questions and every answer is very specific to the problem and no straight forward answer, or i found tutorials that show how to create a checkbox t

3条回答
  •  生来不讨喜
    2020-12-04 03:25

    You can also set following selector as background to list item layout:

    
    
        
        
    
    

    Source: ListView item background via custom selector

提交回复
热议问题