title: how to dynamically duplicate specific tablerow
body: <p>i want to create a copy of my tablerow with its elements in it and the same params when a button clicked. is there any way to do this?
  my unsuccessful try was this:
  xml:</p>
  
  <pre><code>&lt;TableRow 
          android:id="@+id/my_row"
          &gt;
  
  
          &lt;ImageView 
              android:layout_width="100dp"
              android:layout_height="95dp"
              android:src="@drawable/dalass"
              android:layout_weight="1"
              /&gt;
          &lt;LinearLayout 
              android:orientation="vertical"
              android:layout_width="100dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"&gt;
  
          &lt;AutoCompleteTextView
                  android:id="@+id/autocompletetextview"
                  android:layout_width="match_parent"
                  android:layout_height="50dp"
                  android:text=""
                  android:inputType="numberDecimal"
                   android:imeOptions="flagNoExtractUi"
                   android:textColor="#000000"
                   &gt;
          &lt;/AutoCompleteTextView&gt;
          &lt;EditText 
              android:id="@+id/edit_sale2"
              android:layout_width="match_parent"
              android:layout_height="50dp"
              android:inputType="numberDecimal"
              android:imeOptions="flagNoExtractUi"
              /&gt;
  
         &lt;/LinearLayout&gt;
      &lt;/TableRow&gt;
  </code></pre>
  
  <p>java:</p>
  
  <pre><code>View.OnClickListener handler_add=new View.OnClickListener() {
  
      @Override
      public void onClick(View v) {
          // TODO Auto-generated method stub
          LayoutInflater inflator = Sale.this.getLayoutInflater();
                      TableRow rowView = (TableRow) inflator.inflate(R.layout.activity_sale, null);
          table_sale.addView(rowView);
  
      }
  
  };
  </code></pre>
  
  <p>i dont know what the inflater exactly does. somebody help me please :)</p>