Yes, the LayoutInflator class takes care of this, see:

http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/CustomView1.html
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/LabelView.html
http://code.google.com/android/samples/ApiDemos/res/layout/custom_view_1.html
http://code.google.com/android/reference/android/view/LayoutInflater.html

On Oct 11, 6:48 am, "Satya Komatineni" <[EMAIL PROTECTED]>
wrote:
> Anm,
> So cllases like "TextView" etc are instantiated and then filled up
> using the XmlPullParser on the device at run time? If so what
> strategies have you used to populate objects from XmlPullParser? Can
> that code be reused to for user defined java objects?
>
> Satya
>
> On Thu, Oct 9, 2008 at 3:46 PM, A m <[EMAIL PROTECTED]> wrote:
>
> > You can create XML files in res/xml/*.xml, and the resource pre-
> > processor will make them available from the context's resource
> > bundle.  At this point, the resource is presented as an XmlPullParser,
> > from which you can parse the XML to initialize other object types.
> > That parser will need to be custom code from you, not any behind-the-
> > scenes deserializer in the Android SDK.
>
> > Anm
--~--~---------~--~----~------------~-------~--~----~
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