layout1.addView(newView);
layout2.addView(newView);
When I run this code I get the error
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
Is there any possible way to add the newly created view to 2 parent views?