Argy,

One way is by,

LayoutInflater inflater = (LayoutInflater) getSystemService
(Context.LAYOUT_INFLATER_SERVICE);

View view = inflater.inflate(R.layout.main, true);

then , in setContentView(), you can use this view...

Thanks
Nithin



On Sep 15, 6:37 am, WoodManEXP <[email protected]> wrote:
> Yea, look at class LayoutInflater. It explains why pulling the XML
> from outside will not work...
>
> On Sep 14, 8:31 pm, Mark Murphy <[email protected]> wrote:
>
> > Argy wrote:
> > > What if I have this XML layout online (on a website) and I want to
> > > create the layout on runtime?
> > > Is there any way to do this?
>
> > No, sorry.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 1.0 In Print!
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to