I am creating a small Battleship game and for Android UI I was hoping to create a grid of 10x10 buttons with an image or something (something simple). I followed the tutorial presented in this link
My problem is that I cannot get the images to display in the correct 10x10 format. Using a GridView, I set num_columns to "10" in XML, but there is no such attribute for the number of rows. Since phone sizes vary, is there a way to set up a 10x10 grid on any screen?
Following the steps in the link above, I can display 100 clickable images, but my problem is with formatting. Here is a screenshot of the result: 
I tried changing the values ββin XML to scale the images down, but cannot figure out how to do this. Apologies for the lack of code snippets, but I really haven't changed much compared to the sample shown in the link above, different from vertical and horizontal intervals.
I would thank for any enlightenment, even if he simply said that I would completely change that.
source share