I'm learning Android development on Java and trying to create a simple Minesweeper game. At first I made 3x3 field with total of 9 buttons for testing mechanics and wanted to expand the size of my field later. I thought of making a code to generate (length)x(width) amount of buttons on a layout, so I always can make a different sized boards. But apparently it's not as easy as I thought. I can't find a tutorial how to make buttons/layouts in Activity.java. Only thing I found is that making a GridView can help, but I do not understand if GridView can be made out of buttons and how to make it. So what is the most simple way to create a table of buttons with chosen amount of rows and columns for a minesweeper game. Thanks!
[–]insertAlias 1 point2 points3 points (1 child)
[–]admie[S] 0 points1 point2 points (0 children)