title: How to Duplicate a Linearlayout with all views inside it?
body: <p>I have a LinearLayout and it contains some Views.<br>
  How can I duplicate it programmatically?</p>
  
  <p>my Layouts are as below:</p>
  
  <pre><code>linearLayout1 (vertical)
    linearLayout2 (horizontal)
      textView1
      textView2
      imageView
      imageView
  </code></pre>
  
  <p>I want to duplicate linearLayout2 (horizontal)</p>