xinit wrote:
> I need some help using ListActivity.
> The API provides "onListItemClick" which you can override and is
> called when user selects an item in the list.
> 
> However I want the same type of functionality when an item in the list
> is selected.
> So as soon as user highlights something in the list I want my
> application to do something (like play a preview).
> I dont want to wait for user to select the button.
> 
> Any ideas if this can be done in ListActivity ?

Call getListView(), and attach an OnSelectListener to it:

http://developer.android.com/reference/android/widget/ListView.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to