Michael,

Based on your description, I'm not sure why you need multiple
ExpandableListViews.

Seems like you can do this, including scrolling as one unified view, with
just one ExpandableListView, or maybe even just one ListView.

You can make Main Title (a TextView?) be part of the respective group's
layout: start by overrding getGroupTypeCount / getGroupType. It just seems
like it would be easier than making multiple ExpandableListView objects play
together in a single ListView.

-- Kostya

2011/1/24 Michael <[email protected]>

> Hi All,
>
> I just wanted to start a discussion about the approach I'm taking for
> this particular Activity. Here is what I'm trying to achieve:
>
> 1) There are going to be multiple Expandable List Views, each Group
> has a Title and a Button and there will be only one Child with data
> based on that group.
>
> 2) Each Expandable List View has a Main Title attached to the top of
> it.
>
> 3) There will be a ScrollView to scroll through the Multiple
> Expandable List Views.
>
> Here was my solution:
>
> Have a List View contain a TextView for the Main Title and a
> Expandable List View as its child. This allows me to scroll the
> multiple Expandable Lists Views easily.
>
> I have done the work for a single Expandable List View already but I
> noticed attaching a Main Title to a particular subset of groups was
> difficult. Making the adapter smarter might be possible but sloppy. I
> would think my solution would be a preferred method.
>
> I just wanted some input if any of you believe that there can be
> another approach that would be more acceptable. I heard making the
> ExpandableListAdapter smarter to make it seems like there are multiple
> Expandable List Views is possible, but it seems like the complexity
> goes up quite a bit in doing so.
>
> ~Michael
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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