How to Delete List Item in Custom Adapter ListView in android

citadelind
citadelind used Ask the Experts™
on
Hello
I have ListView with custom adapter having 3 arraylist

i want to delete list item on clicking delete button on listview row

pls guide

Thanks & Regards
CitadelInd
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
For Android 3.x and 4.x, there is a recommendation by Google to use the "contextual action bar", so that when an item is selected, you can add a delete icon to the action bar.

For details: http://developer.android.com/design/patterns/selection.html
Technical Lead
Commented:
Hi,

Refer this link for ListView with a button in the list item...

Here they have added listener through xml file
http://androidforbeginners.blogspot.in/2010/03/clicking-buttons-in-listview-row.html

Here you can see the normal way of adding listener to buttons....with in the list item...

http://stackoverflow.com/questions/1709166/android-listview-elements-with-multiple-clickable-buttons

Author

Commented:
Thanks for help..
Your Solution works...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial