Getting item on a ExpandableListView

by Alessandro Pellizzari » Sun, 14 Feb 2010 01:44:52 GMT

Sponsored Links
 Hi all,

it seems nobody ever documented ExpandableListViews, and I am going
crazy... I tried for at least 3 hours, now. :/

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?

Thank you very much


Getting item on a ExpandableListView

by TreKing » Sun, 14 Feb 2010 02:35:35 GMT


Yes, they did: 

How do I get the item?

If you read the documentation, you may find this function: #getExpandableListAdapter%28%29

which will get you adapter that has the data in the ExpandableListView. That
in turn has a getChild(group, child) function: #getChild%28int,%20int%29

TreKing - Chicago transit tracking app for Android-powered devices 


Sponsored Links

Getting item on a ExpandableListView

by Alessandro Pellizzari » Mon, 15 Feb 2010 21:36:04 GMT

 Il giorno sab, 13/02/2010 alle 12.34 -0600, TreKing ha scritto:

I meant: no examples, no directions, no blog posts, no manuals. I only
found a german book on google books, but I could only see 2 pages of it
and didn't get to the point. :/

All the ListView examples use ListView.getItemAtPosition(), but nowhere
I found documented that this is a "wrapper" around the adapter
(inherited from the AdapterView, in fact). :/

This led to my confusion, as ExpandableListView has no such "facility".

Thank you very much. Now I understand how the ListViews "think". :)


Alessandro Pellizzari


Other Threads

1. Built in http module in SDK

Good morning.
I want to know that any http module/layer is available in the Android SDK
If there is any, in which file or in which folder I could find the source
code related to the HTTP module.

If any of you know about this please reply ASAP.

with regards,


2. orientation change crashes when ids are not unique

You can have the same id on different widgets. What is the exception you get?

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


3. Support from Developers

4. News via WSJ ... 1 Million + G-Phones Sold So Far

5. the imageview object supports which formats images other than png and jpg

6. Test on real phone

7. Injecting HTTP header into all requests issued by the emulator