title: Find and copy view dynamically in android?
body: <p>I have created a view now i just want to <strong>copy</strong> this one after another<br>
  say</p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/comp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="top"
      android:orientation="horizontal" &gt;
      &lt;TextView
          android:id="@+id/txtComp1_Brand"
          android:layout_width="200sp"
          android:layout_height="wrap_content"
          android:layout_gravity="center_vertical|left"
          android:gravity="center_vertical"
          android:text="ModelName"
          android:textSize="8pt"
          android:textStyle="bold" &gt;
      &lt;/TextView&gt;
  
      &lt;CheckBox
          android:id="@+id/chkComp1GSB"
          android:layout_width="120sp"
          android:layout_height="40sp"
          android:layout_gravity="center_horizontal"
          android:gravity="center_horizontal|center_vertical"
          android:saveEnabled="true"
          android:text="" /&gt;
  
      &lt;EditText
          android:id="@+id/editTxtNofISBCount"
          android:layout_width="80sp"
          android:layout_height="35sp"
          android:layout_gravity="center_vertical"
          android:gravity="center_vertical"
          android:inputType="number"
          android:maxLength="3"
          android:saveEnabled="true"
          android:textSize="8pt" &gt;
      &lt;/EditText&gt;  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now i want to copy this after one another dynamically in a linear layout say like this</p>
  
  <pre><code>&lt;LinearLayout
          android:id="@+id/comp"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="top"
          android:orientation="vertical" &gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>how can i do this ???</p>