Hi Mark, I just tried as you suggested with the ExpandableList1 sample, and I don't see any exceptions. Can you print the stack of the exception you're seeing?
You can browse the source at http://git.source.android.com jason On Mon, Nov 3, 2008 at 2:33 PM, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > > Hi, > > Trying to implement BaseExpandableListAdapter.getChildView() but it > throws a class cast exception if I try returning any descendant of > View, such as LinearLayout, or ViewGroup: > > public View BaseExpandableListAdapter.getChildView() > { > return new LinearLayout(..); > } > > The API sample returns a TextView, which doesn't crash. What's special > about TextView that works, but ViewGroup will not? I thought they both > derive from View? This used to work in earlier versions of the SDK. > > Is there anything like browse source in svn that will let me just look > at the source of TextView online or do I have to download the entire > source tree to do this? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

