I know that android doesn't highlight anything in TouchMode. But I am doing something similar to the gmail application in which you select stuff from the left side and show details on the right side of the activity(wonder how Google did that).
So the story is I have to highlight what's been selected on the left side ListView. I've found some similar questions and the solutions are basically:
1.override the adapter's getView method and setBackground for selected position
2.setBackground of the view onItemClick and clear it for anther selection
But none of them worked for me due to a weird behaviour: As I click on one item and highlight it, the fifth item after it is highlighted as well, and so on so forth as I scroll down the list.
Any suggestions? THX!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…