Typical way to reference android control is something like this:
TextView tv = (TextView)findViewById(R.id.tv);
Where R.id.tv is integer referencing my xml control.
The thing is I would like to make reference using string "R.id.tv". Is that possible?
Let's say I have multiple controls:
tv1,
tv2,
tv3,
tv4,
tv5,
How would I put this into some sort of loop and interate through controls. I am thinking I would use loop counter to reference different controls. How's that to be done? Thanks.