java - Loop through all "widgets"/elements in a Activity -
i started own android app few days ago since needed mobile application store bunch of data collect in hospital.
i'm pretty new java , android environment, although seems easy understand , similar c++.
anyway, application has bunch of "edittext" , radio buttons , question is:
how can iterate through widgets (edittexts , radio buttons)?
in .net "for each element in container " loop can't seem find way in java/android environment.
note: don't know how many "widgets" exist in activity, since created dinamicaly, others hardcoded , others show if user preferences set
any or hint appreciated.
for (int = 0; < rootview.getchildcount(); i++) rootview.getchildat(i)
note return view-s, have check @ runtime type of view looking at
Comments
Post a Comment