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
U can also reduce this to oneline code;
View view = View.inflate(getActivity, R.layout.my_layout,null);
then add to your view.