xml - Layouts in Android SDK -


is there way load xml layout without r class? , if possible load string?

yes, eg if want load xml web , inflate viewgroup.

use (layoutinflater) minflater = layoutinflater.from(context);

and inflate xml:

minflater.inflate(xmlpullparser parser, viewgroup root)  

you able load xml web performing webrequest , use documentbuilder

documentbuilderfactory dbf = documentbuilderfactory.newinstance(); documentbuilder db; try {  db = dbf.newdocumentbuilder();  document doc =  db.parse([input_stream]);  .... 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -