Highlight selected item in “ListFragment”?

前端 未结 7 773
情歌与酒
情歌与酒 2020-12-16 02:35

I have posted the same problem a couple of times but it hasn\'t yet been resolved. I have a ListFragment and I want to highlight the selected item in the list.

7条回答
  •  独厮守ぢ
    2020-12-16 03:38

    i code

    getListView().setItemChecked(0, true); 
    

    after

    setListAdapter(oAdapter);
    

    code block

提交回复
热议问题