I have a custom listview
with a setOnTouchListener
view.setOnTouchListener(new OnTouchListener() {
@Override
publi
If you want to highlight ListView item on click/touch than it's better to use selectors instead of overiding OnTouchListener().
If you want to set the color, you need a StateListDrawable. You can set this on your list using the android:listSelector attribute, defining the drawable in XML:
Or you can use the same selector for item of the ListView.