I have a pretty complex layout defined in xml file , now I want to add this layout as a view using addView or something else.
xml
addView
As layout is pret
Use
LayoutInflater factory = LayoutInflater.from(this); View myView = factory.inflate(R.layout.my_layout_id, null);
then use addView(myView)
addView(myView)