How to fit layout xml which is getting from server in Android



Hello I am curious for this topic. Here I am getting xml layout from a web service and now when this xml contains the button then app should show button and if xml contain button and textview then app should show button and textview.


Do I here have to parse the xml then create the views dynamically ? but this approach will make things more hard because a lot of properties any view have and searching methods and setting correct position in view container looks like is not simple.


If anyone have experience with this kind of system then please hint how you guys did this.


Thanks in advance.


No comments:

Post a Comment