1

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?

ThinkingStiff
65.4k31 gold badges148 silver badges241 bronze badges
asked Nov 13, 2011 at 0:23

1 Answer 1

1

the basic idea is to:

  1. create or implement ListViewActivity that has the following control for each item: TextView, Button (for edit & delete)
  2. create another EditActivity that is launched whenever user click on edit Button

Here's some resources for #1:

  1. http://www.androidpeople.com/android-listview-example
  2. http://developer.android.com/resources/tutorials/views/hello-listview.html
  3. http://www.vogella.de/articles/AndroidListView/article.html

And here's resources for #2:

  1. http://developer.android.com/reference/android/content/Intent.html
  2. http://developer.android.com/guide/topics/intents/intents-filters.html
  3. http://www.vogella.de/articles/AndroidIntent/article.html
answered Nov 13, 2011 at 1:01
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.