Change ListView Item background color but keep the default selector style?

后端 未结 4 556
暗喜
暗喜 2020-12-18 01:24

I am trying to programmatically set a custom background color in my ListView Adapter but I want to keep the default Listview Selector style from Android.

I am settin

4条回答
  •  旧巷少年郎
    2020-12-18 02:15

    Try to apply this style to your ListView:

    
    

    And in your xml layout this:

    
    

提交回复
热议问题