I am adding ImageButtons one at a time to a GridLayout using RecyclerView. My app listens for incoming images and strings to label the buttons.
I need to be able to set the size of the buttons to a set value (such as 50x50dp). My image below shows how my images are coming in and I realized that each spot in the row doesn't get filled because some images are coming in bigger than others and not leaving room for other images to appear.
Is there a way that I can set this in my incoming ImageButtons? Where do I set these parameters? In my RecyclerViewAdapter?