Deselect selected item in ListView
Call requestLayout()
on the ListView
after clearChoices()
. It will work.
As @Muerte mentioned above, doing the following worked for me:
myListView.clearChoices();myAdapter.notifyDataSetChanged();
That seems like it would be better than redrawing the whole layout.
For me it worked with:
listView.setAdapter(myAdapter);