I am making an Android app of Checkers based on XML widget (like imageview). I made a table of 8X8 of imageviews and call their id like so (i00 , i01 etc). I have two questions:
I've tried to make a reference of the imageviews in the code like this:
ImageView img = (ImageView) findViewById(R.id.i00);
and it gives me an error:
"i00 cannot be resolved or is not a field"
Is there any way of getting id by a string? For example I have a imageview which id is i01, can I get it by:
String str = "i01"
and then give
str
as a parameter for some kind of method?