Highlight selected item in “ListFragment”?

前端 未结 7 772
情歌与酒
情歌与酒 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

    0 讨论(0)
提交回复
热议问题