Hi,
So listview is on of those.components used all over the OS and has all
those tricks to speed it up and in a lot of cases, work correctly. So
let's say I have an adapter that supports N views.

GetViewTypeCount() returns N.
GetItemViewType() return [0, (N - 1)]

Now the interesting part getView
All the examples I see have something like this.
...
layoutInflater.inflate(R.layout.awesome);

As the base view to return if the convert view is empty. This seems to
convert to the correct layout parameter. but the generate layout
parameter in listview only copies width and height it seems. If the
adapter returns multiple views, should we then reset the view's layout
parameters to use laayoutparams( width, height, viewType) before
returning it in getView ( where viewType is the same as the value
returned by getItemViewType for the position being rendered )?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to