Android Question Can I Calling a view by name?

sorex

Expert
Licensed User
Longtime User
no, but you can iterate through a collection of views belonging to a panel (or activity?)

look foor panel.getallviewsrecursive
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
you can even put all your views into a map giving them a name.
Set the name and put the View as Object into this map.
Later you then can get the view out of this map using the name you set when putting the view into the map
 
Upvote 0
Top