Figured it out, use setOnChildClickListener

On Jun 13, 2:27 pm, Bob <[email protected]> wrote:
> Hi,
> How do I handle the selection in an expandablelistview?  I have tried
> using both the setOnItemClickListener  and the
> setOnItemSelectedListener and neither seems to fire when I click
> either the parent or child level elements.
>
> Thanks,
> Bob
>
> SimpleExpandableListAdapter  mAdapter = new SimpleExpandableListAdapter
> ( ...
>
>   lvE.setAdapter(mAdapter);
>
>        lvE.setOnItemSelectedListener(new OnItemSelectedListener() {
>             public void onItemSelected(AdapterView parentView, View
> childView, int position, long id) {
>
>                 }
>                 public void onNothingSelected(AdapterView parentView) {
>
>                 }
>        });
--~--~---------~--~----~------------~-------~--~----~
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