I am making a tile based game for Android. For the sake of argument, let's say I want to have 6 tiles across the top of the screen and that I want the tiles to fill the screen regardless of the phone I am using.
The way I understand it, I want to be using Density Independent Pixels in my code to make sure that the images look the same size on each phone regardless of density, but this does not help me with actually getting 6 tiles to fig snugly in each row. For this, I would need to do a calculation based on the actual pixels on the screen. Further, if I do use DIP I am not guaranteed to have all 6 tiles fit in a row - I would be leaving it up to chance. How do games on the Android handle this? It seems like I cannot solve the problem in a "DIP" way.
Thanks.