dynamic ui - How to create layout xml file programmatically in android -


as requirement need build ui database(server),currently can access ui components , properties db through json , programmtically like
textview tv=new textview(mcontext); tv.settext(jsondata.gettext()); , able show ui. question can create layout file programmatically can place incoming json meta data on file. , include layout xml file. can shed light on this.

no, can't create layout file programatically. due performance issues, android doesn't support this. static files pre-compiled efficiency. can create layout programmatically step step, although isn't suggested large layouts.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -