Edit option in Android tableLayout like in iphone UITableView
<p>I need to have an edit option in <strong>tableLayout</strong> just like in iphone <strong>UITableView</strong>. When edit button is clicked a <strong>Delete</strong> button should appear in each row of tableLayout. What I just did was I created a <strong>Delete</strong> button in each row at runtime and made it hide. And when <strong>Edit</strong> button is clicked, <strong>Delete button</strong> gets visible. But I don't think it seems to be a good practice.<br>
Is there an inbuilt functionality for this? What is the best practice I should follow?  </p>

<p>Thanks and regards</p>
