I'm just trying to do a grouped layout - so a header would be followed by a bunch of rows, then another header, and another bunch of rows. They aren't collapsable, so I don't think it's quite an ExpandableList. As far as break points go, the only thing that seems to be called before the crash is getCount.
I agree that the approach I've got here is all backwards, and I'm going to simplify it into a single class - if I just use the flat "FancyAdapter" (without the headers, naturally), then the crash goes away. So I think I'll just put support for alternate views into my flat adapter to support the headers, and toss the Grouped adapter for now. I would like to know why it's crashing, though, as I may bump into the problem again if I don't know what I was doing wrong in that code. Wendell On Feb 17, 1:55 am, TreKing <treking...@gmail.com> wrote: > On Tue, Feb 16, 2010 at 10:47 PM, whicken <whic...@gmail.com> wrote: > > Here's my GroupedListAdapter class, if that helps any - I added the > > getStableIds returning false in case there was any extra caching going > > on: > > Here's a question - what's the purpose of this adapter? What kind of layout > / functionality are you trying to achieve? It looks to me like you're > reproducing the ExpandablistList functionality in a very strange way. > > First suggestion would be to stick a break point in every single function > and see what gets called and in what order. Also throw in some logging to > make sure your logic is correct in each and every function. > > Beyond that I would strongly suggest reworking this class. Maybe take a look > at BaseExpandableListAdapter instead of the BaseAdapter? Or at least create > an object that represents a single header with some sections and delegate > some of the functionality to it instead of maintaining two lists and trying > to do the indexing yourself in the one class. That's bound to get confusing. > > --------------------------------------------------------------------------- > ---------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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