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
Try to apply this style to your ListView:
And in your xml layout this: