ListView Item selection Android

后端 未结 6 1056
夕颜
夕颜 2020-12-11 19:04

I have a listview in that i want when my activity starts then the first item will have background and the other items don\'t have any background.After that if the user selec

6条回答
  •  臣服心动
    2020-12-11 19:47

    I'm not sure but try putting listView.setSelection(position); in listview's setOnItemClickListener

提交回复
热议问题