[android-developers] Re: how to have onItemClickListener for setListAdapter(new EfficientAdapter(this));?
ohh thanks. this can do my job. @Override protected void onListItemClick(ListView l, View v, int position, long id) { } On May 28, 5:34 pm, Marco Nelissen marc...@android.com wrote: You don't set a separate OnItemClickListener for each position, you set one for the entire list, and in your click listener you will be told which position was selected. On Thu, May 28, 2009 at 9:05 AM, zeeshan genx...@gmail.com wrote: Hi, i need image and text on list view and i am using list 14 example in API demo. i can have image and text in listview but wondering how to implement onItemClickListener for each position anybody help plz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to have onItemClickListener for setListAdapter(new EfficientAdapter(this));?
You don't set a separate OnItemClickListener for each position, you set one for the entire list, and in your click listener you will be told which position was selected. On Thu, May 28, 2009 at 9:05 AM, zeeshan genx...@gmail.com wrote: Hi, i need image and text on list view and i am using list 14 example in API demo. i can have image and text in listview but wondering how to implement onItemClickListener for each position anybody help plz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---