0

I had a scenario where I need to handle the clicks of each list item one by one with out clicking on that item. Is there a possiblity in which I can achieve this scenario. Can anyone help me is sorting out this issue.

Thanks in Advance

  • 1
    If you google "android listview auto click", this came up: http://stackoverflow.com/questions/8094268/android-listview-performitemclick – Simon Zettervall Oct 09 '13 at 13:52

2 Answers2

1
mList.performItemClick(
        myList.getAdapter().getView(position,null,null),position,myList.getAdapter().getItemId(position));

here position is your click position

or simply you can do this

mList.getAdapter().getView(position, null, null).performClick();
Hassaan Rabbani
  • 2,469
  • 5
  • 30
  • 55
0

You can retrieve your list item and call item.perFormClick()

Ahmad Dwaik 'Warlock'
  • 5,953
  • 5
  • 34
  • 56