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 760 times
2 Answers
4
ListView.setSelection(int pos) will help you to achieve this.
Mohammed Azharuddin Shaikh
- 40,812
- 14
- 95
- 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
- 459
- 3
- 7