Hi Chaz,

Thanks for your prompt reply.I need a sample program where i can see
the usuage of inflate method so that it will be easy for me to
understand.Appreciate if you could help.

Thanks,
Shekhar

On Feb 4, 5:41 pm, MrChaz <[email protected]> wrote:
> The LayoutInflater has an inflate() method which lets you do 
> this:http://developer.android.com/reference/android/view/LayoutInflater.html
>
> On Feb 4, 12:00 pm, Shekhar <[email protected]> wrote:
>
>
>
> > Hi Folks,
>
> > I need help on how to load XML  file dynamically in the code.I have an
> > activity and for the activity I have 5 xml layout files.I want to load
> > one of the XML file depending on the some logical condition.for e.g
>
> > switch(i)
> > {
> > case 1:
> > //load XML file 1
> > break;
> > case 2:
> > //load XML file 2
> > break;
> > case 3:
> > //load XML file 3
> > break;
>
> > }
>
> > Please help me with some code snippet as i am new to the android
> > Programming.
>
> > Thanks,
> > Shekhar

-- 
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