Thursday, February 7, 2013

Disabling highlight on ListView items on click

If you want list-view for only showing items in android then add following code to your list-view


<ListView
 android:listSelector="@android:color/transparent"
android:cacheColorHint="@android:color/transparent"
/>


By adding above code in XML it disables default color in list-view.

No comments:

Post a Comment