How to make the first item of a ListView to be selected as default at startup?

前端 未结 13 1018
甜味超标
甜味超标 2020-12-11 16:08

There is a ListView in my App and the ListView has a selector. I want to make the first item of this ListView to be selected as default at the very

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 16:45

    I think this will work as we have given 0 index of array to listView

    ListView.setSelection(0);
    

提交回复
热议问题