is it possible in Android create dynamic layouts and then use them? I mean insted of layouts defined in src use some dynamic generated layouts from database, which contains pieces of XML code and when put together it makes new layout…
It is real or unreal scenario?
That is not supported. The built-in
LayoutInflaterrequires resource files, not arbitrary XML. Quoting the documentation:You would have to write your own
LayoutInflaterequivalent.