Skip to content Skip to sidebar Skip to footer

How To Perform Autoclick Of List Items In Listview Android

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 anyo

Solution 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();

Solution 2:

Post a Comment for "How To Perform Autoclick Of List Items In Listview Android"