On Tuesday, March 20, 2012 9:25:54 AM UTC-7, Kostya Vasilyev wrote: > > Well, you can use this to go from identifier-as-a-string to > identifier-as-a-number: > > > http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String > , > java.lang.String, java.lang.String) > > Another option is to specify tags for your buttons with > android:tag="blahblahblah" in the XML, and then use > View.findViewWithTag: > > > http://developer.android.com/reference/android/view/View.html#findViewWithTag(java.lang.Object) > > I understand that neither option is very fast, so use carefully (cache > the results in a more directly accessible data structure). >
One such structure is a 'java.util.Map<String, RadioButton>'. -- Lew -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

