Found a way out.

int pos = listView.getPositionForView(v);
int grpPostion =
ExpandableListView.getPackedPositionGroup(listView.getAdapter().getItemId(pos))-1;


is this the best way to do it?

Thanks

On Tue, Apr 7, 2009 at 5:57 PM, for android <[email protected]> wrote:

> How do I find the postion of the item clicked in an Expandable List.
>
>
> In a list view the listView.getPositionForView(v); is present which gives
> the postion of the clicked item.
>
> But in an expandable list how do i get to know the postion of the
> grouppostion or the childposition
>
>
>
> Thanks
>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to