I want to disable the orange highlight that occurs when touching a listView row. So far in my xml I have tried the following:
android:focusable="false" android:focusableInTouchMode="false" android:clickable="false"
More information: I want there to be zero difference when a user touches the screen on this listView object.
Add this to your xml:
android:listSelector="@android:color/transparent"
And for the problem this may work (I'm not sure and I don't know if there are better solutions):
You could apply a ColorStateList to your TextView.
RoflcoptrException's answer should do the trick,but for some reason it did not work for me, So I am posting the solution which worked for me, hope it helps someone
<ListView android:listSelector="@android:color/transparent" android:cacheColorHint="@android:color/transparent" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With