Add a new editText on Button press
<p>I have a simple Table Layout with an empty row</p>

<pre><code>&lt;TableRow
    android:id="@+id/range_input1" &gt;
&lt;/TableRow&gt;
</code></pre>

<p>I would like to add an EditText to that row when user presses a button. I am quite unsure on how to do that though. What is the proper way of doing it? So far I can only think up of two ways, first one I have the EditText in the row and just make the row hidden, or I try to create the EditText when the button is pressed.</p>

<p>The problem is that I have no idea how to do either option, nor could I find any tutorials on explaining how to add or hide forms.</p>

<p>Also I was wondering if it is possible to do slide effect.</p>

<p>Thanks to anyone for their help!</p>
