Inflate ListView row from OnClickListener in Android?

后端 未结 2 466
执念已碎
执念已碎 2020-12-07 05:40

I have a class (A_Main.java) extending ArrayAdapter. I set my ListView to use A_Main as it\'s ListAdapter. I

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 06:46

    Should look at this video. http://www.youtube.com/watch?v=wDBM6wVEO70. Especially the viewholder part to reuse views and avoid memory leaks. To highlight a listview row button check the position of the item on which you click and highlight the button by setting a background for the button.

提交回复
热议问题