Android: Dynamically change Image in Listview

前端 未结 5 2033
傲寒
傲寒 2021-02-04 07:08

I have a listview defined by the following xml. I need to toggle the image in the list during runtime when the user clicks on any row. How can I achieve this? A

5条回答
  •  故里飘歌
    2021-02-04 08:15

    I will generate dynamically the listview and then bind to the onclickitem event, in order to do the setimageresource as say by 'Kiril Kirilov'.

提交回复
热议问题