how can i inside the code specify which list view is clicked as i must make the 
id a by certain name how can i know
 

 
Yours,
     --( H o H i )--

--- On Sat, 5/24/08, Mark Murphy <[EMAIL PROTECTED]> wrote:

From: Mark Murphy <[EMAIL PROTECTED]>
Subject: [android-beginners] Re: How to set LIstener on ListView
To: [email protected]
Date: Saturday, May 24, 2008, 2:13 PM

Yatish wrote:
> I want to set Listener on on the listView but the listview is set by
> BaseAdapter class .

You implemented ListActivity, so you can simply implement 
onListItemClick() in the activity to be notified when the user clicks on 
an item in the list. And, if you want to set another listener, call 
getListView() from the activity to get the ListView, then call the 
appropriate listener-setter.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch in September! http://www.bignerdranch.com



      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to