How to change color of Android ListView separator line?

前端 未结 9 1646
时光取名叫无心
时光取名叫无心 2020-11-28 00:08

I want to change color of ListView separator line. Any help would be appreciated.

9条回答
  •  天命终不由人
    2020-11-28 01:03

    You can set this value in a layout xml file using android:divider="#FF0000". If you are changing the colour/drawable, you have to set/reset the height of the divider too.

    
    
      
    
    
    

提交回复
热议问题