Building/using runtime generated layout XML in Android

前端 未结 3 610
醉话见心
醉话见心 2020-12-13 11:22

I am currently working on a project which requires me to use an XML document to render a form on an Android device. The form must be fetched and displayed at run-time. I am

3条回答
  •  生来不讨喜
    2020-12-13 11:55

    The LayoutInflater.inflate method will take an XmlPullParser as an argument so all you need to do is load your dynamically created XML into a PullParser and pass that into the inflater.

提交回复
热议问题