Building/using runtime generated layout XML in Android

前端 未结 3 611
醉话见心
醉话见心 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:43

    Android only contains a built-in way to "inflate" layout XML stored as a layout resource in the APK file. If you want to "inflate" similar (or different) XML from other sources, you will have to implement that yourself, perhaps by cloning some logic from the LayoutInflater class.

提交回复
热议问题