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
Bye.


--



Getting item on a ExpandableListView

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


 



Yes, they did:
 http://developer.android.com/reference/android/widget/ExpandableListView.html 



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 

--


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". :)

Bye.


-- 
Alessandro Pellizzari

--



Other Threads

1. Built in http module in SDK

Hi,
Good morning.
I want to know that any http module/layer is available in the Android SDK
V1.
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,
Geetha

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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
romain...@android.com

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