1

My question is more a curiosity:

Is there any way to load an external xml layout from web service.

E.g. Download XML File > Load XML layout with setContentView ...

Valy Dvweb
  • 35
  • 8

1 Answers1

0

It is not possible. This is what can be found in the LayoutInflater docs :

For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime; it only works with an XmlPullParser returned from a compiled resource (R.something file.)

2Dee
  • 8,609
  • 7
  • 42
  • 53