title: How to resolve "The specified child already has a parent. You must call removeView() on the child's parent first."?
body: <p>I have tried to add my custom layout into my main layout. I have followed the following link <a href="https://www.myandroidsolutions.com/2013/02/10/android-add-views-into-view-dynamically/#.Xa6la5MzbVo" rel="nofollow noreferrer">https://www.myandroidsolutions.com/2013/02/10/android-add-views-into-view-dynamically/#.Xa6la5MzbVo</a> . But I am getting the error like this. <a href="https://i.stack.imgur.com/OM5vm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OM5vm.jpg" alt="enter image description here"></a></p>
  
  <p>How can I resolve this?</p>