I have a custom selector for my ListView items. This is what it looks like:
<item android:drawable="@color/transparent" android:state_activated="false"/>
<item android:drawable="@color/blue" android:state_activated="true"/>
When I tap on an item, it's background turns blue. I want to do this "tapping" via code but I don't know what method to call even if I already know the child's position in ListView.
Actually, what I really want is to change the background of a row (similar to when it is tapped) without firing onListItemClick().