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

Reply via email to