I thinks it\'s probably not possible for security reason but just want to be sure: is it possible to create layout in Android from an external XML file?
It is impossible. XML layouts in Android are NOT stored as XML. For performance reasons, they are pre-processed during compilation and stored in binary form, and layout inflater only understands that binary form rather than xml.