分享

Building Android user interfaces at runtime with layouts from server

 quasiceo 2015-07-02

Looking at an earlier question link text based on the same concept,is there an approach to do this via the LayoutInflator?

asked Jun 3 '10 at 13:41
Muniu
1121213

1  
Maybe I've misunderstood your question (or the answers to the previous question), but it looks like they specifically say that you can't do that. Someone there quotes "it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime" from the documentation. –  Steve Haley Jun 3 '10 at 13:48
    
Thanks, I was hoping someone has found a workround on the "it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime". Well I guess i'll have to go the "do it yourself" way in this one. –  Muniu Jun 4 '10 at 13:45
1  
Android Framework uses the mechanism called as dependency injection to create a view hierarchy from xml layouts. So to build user interface runtime with layouts from server you need to checkout android open source code how they are doing and then you can build you own implementation of it.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多