hi. i am a newbie trying to learn android by doing a todo application. so far i have:
- list all todos
- create a todo(insert into database)
i need help adding a delete feature my xml structure for todo list is that i have a TableLayout. and to display my todo list, i put my todo in a textview and i put that textview into a tablerow and i put that tablerow into my tablelayout.
now i want to add a delete button to the right of my todo list. my question is is there a default delete button that i can use? how do i handle the onclick event, i mean like if a click on a delete button, how do i know which todo this button is for? and is my layout correct?