okay I will breifly define what I exactly want.I\'m getting an java code(for textview, button,etc) from api like this--> image description here and Xml code(for textview, bu
My Dear Friend, Unfortunately, It is not possible. as you are saying XML and java code from serverside. To run java code we need it to be compiled which is not possible on mobile.
Hope you understand. But, what you can do is you can make a helper class which can parse JSON and returns a view which is generated from JSON and JSON contains element description like elementType, width, height, which can be predefined in server.
Or you can use a Webview that loads a webpage from the server. and to use it in the application. or for some operation use intercept javascript.