[android-beginners] Re: Android general question

2009-08-09 Thread Mark Murphy
tinyang wrote: > Thanks Mark for the reply. Does that then mean that FindViewById searches > all xml files to find the correct view? No, calling findViewById() on an Activity searches the layout you provided in setContentView(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://t

[android-beginners] Re: Android general question

2009-08-09 Thread tinyang
: android-beginners@googlegroups.com Subject: [android-beginners] Re: Android general question tinyang wrote: > For each class/activity created in an application, does a separate xml > file need to be created for the gui layout? Not necessarily. Multiple activities can share a layout if th

[android-beginners] Re: Android general question

2009-08-09 Thread Mark Murphy
tinyang wrote: > For each class/activity created in an application, does a separate xml > file need to be created for the gui layout? Not necessarily. Multiple activities can share a layout if they all look the same. One activity might use many layout files (one for the overall screen, one for ro