On Tuesday, December 21, 2010 3:05:10 PM UTC+6, vnv wrote: > > Hi, > > quick question, if you have two xml layouts and both layouts have the same > button name for eg. how findViewById knows which one is used. > > In activity I say setContentView(R.layout.first). Does this means that > findViewById will grab resources from first?. > > Yes. findViewById has no interest with what you have in your other xml's.
Regards Sarwar Erfan -- 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

