Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to change ListView selected row background colour in code

$
0
0

Hi,

I am populating a listview, and progmatically setting the selected item through .SetSelection(Position), this works great and even scrolls the listview to the selected item. I thought it would be nice to change the background colour of the selected row to show the user the exact item that is selected, however im unsure how to acheive this in code.

I have tried myListView.SelectedView.SetBackgroundColor(Android.Graphics.Color.AliceBlue) but this causes an error.

any ideas?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>