Deselect selected item in ListView

后端 未结 8 848
天命终不由人
天命终不由人 2020-12-18 20:29

I use a ListView in my layout like this:

 

        
8条回答
  •  醉话见心
    2020-12-18 20:47

    Nothing of the solutions actually worked for me. My listview is for listing the searched items and has a provision to redo the search. On getting the result I added the following code snippet and it worked :)

    myAdapter.setSelectedIndex(-1);

提交回复
热议问题