I want to make the below code concise. It has repetition of similar kind of calls. I tried LinearView and GetChildCount method but It does not give me proper results, I might have misunderstood how to define these in loop using Childs Or other method.
Can any one help ?
tv1 = (EditText) findViewById(R.id.tv1);
tv2 = (EditText) findViewById(R.id.tv2);
tv3 = (EditText) findViewById(R.id.tv3);
// ...
// ... and so on till
// ...
tv25 = (EditText) findViewById(R.id.tv25);
// Similarly
tv1.setText(stall);
// ... till ...
tv25.setText(stall);