ListView Item selection Android

后端 未结 6 1058
夕颜
夕颜 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:43

    OnListItem click pass the selected position to the adapter and set the adapter again and in adapter check if selected position then set the background otherwise does not set the background.

提交回复
热议问题