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
There two way to add view dynamically .
you create you xml file .then using LayoutInflater you lnflater that xml to your view .
Or You can create view dynamically like var textview=TextView()
then textview.text="xyz"
You need relativelayout or linearlayout where will add those will using addView(); method.
But i condition you have declare your view then you can customize at runtime.
you can check the example