Clear SingleChoice ListView selection

后端 未结 5 1528
迷失自我
迷失自我 2020-12-29 10:13

Is there a way to clear the selected item in a ListView?

The ListView is defined like this:



        
5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 10:41

    Its works simple for me:

    ListView listView = (ListView) findViewById(R.id.idMyListView);
             listView.clearFocus();
    

提交回复
热议问题