On click on next button, the list should highlight/select next item in the listview. How can i achieve it without actually touching the list item directly on the screen?
Asked
Active
Viewed 795 times
2 Answers
4
ListView.setSelection(int pos) will help you to achieve this.

Mohammed Azharuddin Shaikh
- 41,633
- 14
- 96
- 115
-
I have tried that, though I am able to get the vales of list using it. Not able to achieve my requirement. Is there any way to highlight the same item in list ? – Adarsh H S Jun 20 '12 at 04:26
-
1Your solution doesn't highlight the item – RafaelJan Feb 22 '19 at 08:41
0
on next click u can change the background of the respective item and store the position for further work.this will be act as selected items

Md.ibrahim khalil
- 479
- 3
- 7