title: copy items in XML into for loop
body: <p>I have servel items such as buttons and scrollview , tablelayout .. etc in my XML file
  with custom height and width and Y , X .</p>
  
  <p>I want to copy this item's in for loop to make this items created in each for loop stage automatically with out editing xml again .</p>
  
  <p>it should convert this XML items to programming code first ? and how ?</p>
  
  <p>code XML: </p>
  
  <pre><code> &lt;ScrollView
      android:id="@+id/scrollView1"
      android:layout_width="394dp"
      android:layout_height="389dp"
      android:layout_x="-12dp"
      android:layout_y="106dp" &gt;
  
      &lt;TableLayout
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:background="@drawable/back1" &gt;
  
          &lt;TableRow
              android:id="@+id/TableRow18"
              android:layout_width="match_parent"
              android:layout_height="fill_parent"
              android:background="@drawable/back1" &gt;
  
              &lt;CheckBox
                  android:id="@+id/CheckBox18"
                  android:layout_width="20dp"
                  android:layout_height="20dp"
                  android:layout_marginLeft="20dp"
                  android:layout_marginTop="4dp"
                  android:button="@drawable/test"  /&gt;
  
  
              &lt;TextView
                  android:id="@+id/TextView34"
                  android:layout_width="220dp"
                  android:layout_height="22dp"
                  android:layout_marginLeft="23dp"
                  android:text="hesham abdulhamid elnemr" /&gt;
  
              &lt;TextView
                  android:id="@+id/TextView35"
                  android:layout_width="110dp"
                  android:layout_height="22dp"
                  android:layout_marginLeft="0dp"
          android:text="095110263" /&gt;
  
          &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>