3

By default the selected item color in a Xamarin.Forms ListView is orange.

Selected Color ListView

As many posts already point out, you can change this globally by adding this line to your styles.xml:

<item name="android:colorActivatedHighlight">@color/accent</item>

Or write some fix that sets the cell's background color using Xamarin.Forms (which in my eyes is a bit of a hack, I rather find a native solution).

I would really like to know if its also possible with a custom renderer (so they can be set independently).

Note: I also tried this answer, however it resulted in multiple cells appearing as selected.

Trevi Awater
  • 2,212
  • 2
  • 27
  • 48
  • What if you set color to white and have ViewCell with grid inside and set grid background color depending on selected item? – Julius Degutis Feb 15 '18 at 19:25

0 Answers0