1

how to highlight ListView view on click?

view story
linux-howto

http://stackoverflow.com – Well I want to highlight the view so the user can see which item it have selected. I tried like this: View.setBackground(COLOR.RED); Inside listView on item click listener and it works, but if the list get scrolled random views start changing backgrounds. How can I highlight them and don't lose what item is highlighted on listView scroll? Note: I'm using a custom adapter with one imageView and 3 textView per row. Thanks (HowTos)