1

About my android app,the OnItemClickListener of ListView, I want to achieve when I click on one item ,this will be highlight or can be better:change color(red,blue or orange).and the rest will be the original color.I have check some course,I don't know how to realize,could anyone give me some guide or direction,I will be very appreciate about your help.

mooplee
  • 23
  • 4

1 Answers1

0

Try use android:listSelector="@drawable/your_image" which meants not so good practice. Use XML for better gesture like android:listSelector="@drawable/your_drawable_XML_file"

Pattabi Raman
  • 5,814
  • 10
  • 39
  • 60