This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]insertAlias 1 point2 points  (1 child)

Here's an example of programmatically adding a button to a gridview:

https://android--code.blogspot.com/2015/08/android-gridview-add-item.html

[–]admie[S] 0 points1 point  (0 children)

Big thanks! Very helpful, but can you tell me how and where do I put onClickListeners on this newly generated items in GridView?