moazzamk wrote: > Can anyone point me in the right direction please. I used the notepad > example on android's site and created a listActivity which uses a > database to fill out the list. However, every row has a delete button > and I want to listen for a click of that button and then delete the > row from listView. Is there a way I can do that?
The easiest way I know of is to subclass your adapter, override getView(), inflate your own row Views, and attach a listener at that point, since you have each Button object handy as part of the inflation process. You can get an idea of the concept by reading my "Fancy ListViews" series of posts over on AndroidGuys (http://androidguys.com). However, they were mostly from this summer and were written for the M5 SDK, and so will require some changes to get the source code samples to run on Android 1.0r1. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

