In that example, nothing, but if I have an adapter which can accept an unknown amount of types, I would need something like that, right?
Thanks On Mar 2, 11:42 am, Mark Murphy <[email protected]> wrote: > Mark Wyszomierski wrote: > > @Override > > public int getViewTypeCount() { > > int count = 0; > > if (mHorses.size() > 0 { > > count++; > > } > > if (mCows.size() > 0) { > > count+; > > } > > return count; > > } > > Just return 2 from getViewTypeCount(). > > What do you think you're gaining from your above code? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training in NYC: 10-11 April 2010:http://guruloft.com -- 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

