I've been searching for the past couple of hours. But I'm at a total loss as to what I should be searching for because I don't know what it's called.
I want to have a list of items Clicking on an item will bring up the "Edit Activity" for that item. But to the right of each item, should be a clickable red button to DELETE that item. I've seen this in other apps even in Android notifications.
Is this a standard tool/widget? Or do I need to create this myself?
If it's a standard tool, what's it called?
1 Answer 1
the basic idea is to:
- create or implement ListViewActivity that has the following control for each item: TextView, Button (for edit & delete)
- create another EditActivity that is launched whenever user click on edit Button
Here's some resources for #1:
- http://www.androidpeople.com/android-listview-example
- http://developer.android.com/resources/tutorials/views/hello-listview.html
- http://www.vogella.de/articles/AndroidListView/article.html
And here's resources for #2: