Changing color when keeping push an item on listview

IpotexIpotex ARMember ✭✭
edited November 2017 in Xamarin.Forms

Hi! I'm using Xamarin.Forms. I need to change color when user keep push an item on a listview.
I can change color for selected Item, using code below in styles.xml

 <color name="ListViewSelected"> #abcb37</color>    
 <color name="ListViewHighlighted">#E39696</color> 

 <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>

but, no effect on keeping push action.

When user touch an item, it keep selected with default android color, and then, when user release, it take ListViewSelected color.
I tried with CustomRender without lucky. With themes, styles.xml, no solution at this moment.
Is it posible to change this "keeping push" color? Is this color called "colorPressedHighlight"?
I'll really apreciase your help.
Than you in advance.

Ipo.

Sign In or Register to comment.