> > On Fri, Jul 27, 2012 at 10:14 AM, Justin Anderson > <magouyaw...@gmail.com>wrote: > >> If you only have a single type of item in your list, just implement this >> and always return 1. > > > FYI, that's unnecessary as that's the default implementation. You only > need to override it if you have more than the standard one view in your > list. >
I was going off of this from his original post: "public *abstract* int getViewTypeCount ()" Whether or not you have to implement it would depend on what class you are deriving from. Based on the information he provided, he would have to implement. If he is subclassing a class that already implements that method then it is correct that he doesn't need to implement it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 27, 2012 at 9:56 AM, TreKing <treking...@gmail.com> wrote: > On Fri, Jul 27, 2012 at 9:43 AM, bob <b...@coolfone.comze.com> wrote: > >> Can someone help me understand why I must implement this method? It >> seems like it should not be necessary to do this. > > > You don't *have* to. It's *not* necessary to do this. > > > On Fri, Jul 27, 2012 at 10:14 AM, Justin Anderson > <magouyaw...@gmail.com>wrote: > >> If you only have a single type of item in your list, just implement this >> and always return 1. > > > FYI, that's unnecessary as that's the default implementation. You only > need to override it if you have more than the standard one view in your > list. > > > ------------------------------------------------------------------------------------------------- > 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 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 > -- 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