Android - swipe gesture on Table row should give me Button to perform certain actions?
<p>Am new to Android and want to use swipe gesture on my table.
I am populating my table using an array list from a SQLite DB.
On swipe of ONE particular row, i want to </p>

<ul>
<li>show an option button (Update)</li>
<li>identify the contents of that row (primary key of table?)</li>
<li>On press of the Update button - move to the next screen with the values of that particular row from the DB</li>
</ul>

<p>Can someone help me with this?</p>

<p><strong>Current Code</strong></p>

<p>DB table query</p>

<pre><code>cursor = db.query(
                BANKTABLE_NAME,
                new String[]{BANKTABLE_ROW_ID, BANKTABLE_BANKNAME, BANKTABLE_BALAMT, BANKTABLE_CURRENCY},
</code></pre>

<p>Populating the Table from the above query</p>

<pre><code>    private void updateTable()
{
    ArrayList&lt;ArrayList&lt;Object&gt;&gt; data = db.getAllRowsAsArrays();

    for (int position=0; position &lt; data.size(); position++)
    {
        TableRow tableRow= new TableRow(this);

        ArrayList&lt;Object&gt; row = data.get(position);

        TextView bankNameN = new TextView(this);
        bankNameN.setText(row.get(1).toString());
        tableRow.addView(bankNameN);

        passCurrency = row.get(3).toString();

        currencyTable();

        TextView balINRA = new TextView(this);
        balINRA.setText(String.valueOf((Integer.parseInt(row.get(2).toString()))*rateForCalc));
        tableRow.addView(balINRA);


        dataTable.addView(tableRow);
    }
}
</code></pre>
