On Sat, Feb 13, 2010 at 11:44 AM, Alessandro Pellizzari <[email protected]>wrote:
> it seems nobody ever documented ExpandableListViews, > Yes, they did: http://developer.android.com/reference/android/widget/ExpandableListView.html > I have overriden onChildClick, and it gives me groupPosition and > childPosition, but it seems there is no getItemAtPosition(groupPosition, > childPosition) and no other way to get the correct item. > How do I get the item? If you read the documentation, you may find this function: http://developer.android.com/reference/android/widget/ExpandableListView.html#getExpandableListAdapter%28%29 which will get you adapter that has the data in the ExpandableListView. That in turn has a getChild(group, child) function: http://developer.android.com/reference/android/widget/ExpandableListAdapter.html#getChild%28int,%20int%29 ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

