Currently, findViewById uses a R.id.viewid which is an Integer to find
views.

Is it possible to give findViewById a string like "R.id.field_1_text"?

The reason i want to know this is then, i can use a loop and change
the values for fields like
R.id.field_1_text, R.id.field_2_text, R.id.field_3_text .... rather
than setting all of them sequentially.

Is it possible to convert a string to a resource id before passing it
in to the findViewById method. I tried looking on the groups but
didn't find anything that could help me in this case.

Thanks
- Kavik
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to