You can have many instances of any type of View with the same id without 
restriction. The id is just an int field on a view, so that the view may be 
identified in code. Changes to one instance will not change the other 
instances, regardless of their container (Activity, Fragment, ViewGroup). 
To gain a reference to a particular instance, you should call findViewById 
on its closest parent (assuming you do not have multiple instances as 
direct children of the same parent).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to