Forum Xamarin.Forms

Listview Selected Item Background Color



  • TarasBountyTarasBounty Member
    edited September 2019

    Any updates?

  • MO35ABMO35AB Member

    Its from the android side :smile:
    Add this to your android styles.xml file under your main theme:

      <style name="MyTheme" parent="android:style/Theme.Material.Light.DarkActionBar">
       <item name="android:colorPressedHighlight">@color/ListViewSelected</item>
       <item name="android:colorLongPressedHighlight">@color/ListViewHighlighted</item>
       <item name="android:colorFocusedHighlight">@color/ListViewSelected</item>
       <item name="android:colorActivatedHighlight">@color/ListViewSelected</item>
       <item name="android:activatedBackgroundIndicator">@color/ListViewSelected</item>
    <color name="ListViewSelected">#96BCE3</color>
    <color name="ListViewHighlighted">#E39696</color>

    new here can't add links, however here you go :


    dont kick me please.

  • LouissLouiss Member ✭✭✭
    edited February 2020

    The easiest way I found was adding to the style sheet on android:

Sign In or Register to comment.