Apoorva wrote:
> I want to write to R.layout.main.xml from my code to create variable
> no of views simultaneously present on the screen.

You need to construct your Views using normal Java constructors (or 
factory methods, where applicable), and wire them together using 
ordinary accessor methods. I'm fairly certain the XML layouts are a 
design-time facility only.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch in September! http://www.bignerdranch.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to