I have a gridview that is filled with several images using a custom adapter.
The adapter item that shows the images have a download button.
What I want to do is to send a method to the custom adaptar that should be called when the user presses the download button.
onlinegallery-> associate gridview with adapter sending an onlinegallery method as parameter
gridview adapter -> shows several item.xml each containing an image and a button.
item button -> when pressing the button, the onlinegallery method should be called indicating the image to download.
以上就是Calling method in host from gridview adapter的详细内容，更多请关注web前端其它相关文章！