'What kind of Android Java elements to use for 2dmap representation?
I am trying to create a 2d map of square boxes of x by x size as shown below.
I should be able to "put" elements on top of it. For example, the cell/square can be selected and highlighted, and I can put an image on top of it.
It should also be able to show a character movement overlay such as:
Currently I am creating it by defining my own Cell class:
private class Cell {
boolean topWall = true,
leftWall = true,
bottomWall = true,
rightWall = true;
int col, row;
public Cell(int col, int row) {
this.col = col;
this.row = row;
}
}
and using canvas to draw the square. I am wondering if there are better ways to achieve this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


