android-Button's clickevent of listView using BaseAdapter

后端 未结 5 1746
陌清茗
陌清茗 2021-01-17 02:22

I am using Listview With custom Adapter which contain imageview,textview and 3 button (insert,update,delete)requirement is that custom adapter is call every

5条回答
  •  渐次进展
    2021-01-17 03:16

    You can use the button listener inside the the adapter but the only item to register it will be the last item drawn (ie the one immediately off the list). You need to tell the button listener which item it has been clicked on. In my case I just passed in the position and used that to load any associated info needed to manipulate the list item.

提交回复
热议问题