> I want to receive a longpress event on my ExtandableList. The only way > I found is to implement an OnItemLongClickListener and set it by using > ExpandableListView view = this.getExpandableListView(); > view.setOnItemLongClickListener(onItemLongClickListener ); > in my ExpandableListActivity. > > How ever in the OnItemLongClickListener I only have the following > method > public boolean onItemLongClick(AdapterView<?> parent, View view, int > position, long id);
The documentation for that callback says to call getItemAtPosition to get the item clicked. What it doesn't tell you is that this is a method on the AdapterView given to you in the parent parameter and you need to pass it the position parameter. The Adapter associated with your view will then be queried to feed the object of interest back to you through this method and you can check it to see if it's a group or a item. Doug -- 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

