Android findViewbyId mit einem variant-string

TextView textView1= (TextView) dialog.findViewById(R.id.textView1);

Ich möchte etwas erschaffen, wie diese:

for (int i=0; i<100; i++) {
   TextView textView= (TextView) dialog.findViewById(R.id.textView+i);
}

wie kann ich das tun?

Leslie

InformationsquelleAutor lacas | 2011-07-13
Schreibe einen Kommentar