On Tue, Sep 21, 2010 at 1:15 AM, dashman <[email protected]> wrote:

> 1. i would imagine newChildView would create the default layout - i have
> to create the different layout manually?
>

Yes - you would create whatever you needed based on the current group /
child position or whatever else determines your specific views, I guess.


> 2. convertView can be a view with either type - right? how do i know what
> type it is.\
>

Good question. I was running under the assumption that you could do
something like this:
http://developer.android.com/reference/android/widget/Adapter.html#getItemViewType%28int%29

But that's apparently limited to ListAdapter, which is surprising.
You could do some hackiness where you shove some ID in the view as a Tag or
something.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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