Set Activated Item In Listview Programmatically
I have a simple ListView with some items that have setChoiceMode set to ListView.CHOICE_MODE_SINGLE, which means when I touch an item, it is highlighted. This way the user can see
Solution 1:
you can select item with following code:
listView.setItemChecked(position, true);
Solution 2:
Using this method worked for me
listView.performItemClick(listView, position, listView.getItemIdAtPosition(position));
Post a Comment for "Set Activated Item In Listview Programmatically"