Mark Wyszomierski wrote:
> Hi,
> 
> I have a list adapter extended from BaseAdapter. Is there any way to
> get getViewTypeCount() to be called besides the following:
> 
>   mMyListView.setAdapter(mMyAdapter): // gets fired as a result of
> setAdapter().
> 
> Is there any other way to trigger this? The docs for
> BaseAdapter.getViewTypeCount() say:
> 
>   "This method will only be called when when[sic] the adapter is set
> on the the[sic] AdapterView."

The AdapterView is the one that needs the getViewTypeCount() value, so
it can maintain appropriate object pools.

> I'm just seeing if there is a way to trigger it inside my custom list
> adapter class so the external users (activities) don't need to worry
> about it.

What does that mean?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Consulting/App Development: http://commonsware.com/consulting

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