Maybe this is useful for you, I use a button array, so I work with text text like:
TextView[ ][ ] _txt;
_txt = new TextView[_dimension][_dimension]; // _dimension = 5 what you want
_txt[0][0] = (TextView) findViewById(R.id.text1);
_txt[0][1] = (TextView) findViewById(R.id.text2);
and much more...
source
share