Okay, after playing around I have been able to get a WebView to display as a child view within the expandable list, however...
When you scroll the list up or down the list is not repainted correctly, unlike normal child views the WebView doesn't seem to scroll with the rest of the list and remains in a static position on screen. It also paints over the top of the parent groups in the expandable list after trying to scroll. Lastly the scroll bar is very erratic, one moment it is large the next it is resized to be very small, as if the WebView is really tall in height. Any ideas? On Jan 17, 4:19 pm, mscwd01 <[email protected]> wrote: > As the title asks - Is it possible to place a WebView inside an > expandable list (as a child). > > I have tested this; having created a WebView I placed it as a "View" > in the getChildView() of the BaseExpandableListAdapter Class. However > I get the following error: > > java.lang.ClassCastException: android.widget.AbsListView$LayoutParams > at android.widget.LinearLayout.measureVertical(LinearLayout.java:323) > at android.widget.LinearLayout.onMeasure(LinearLayout.java:275) > at android.view.View.measure(View.java:6621) > at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791) > at android.widget.FrameLayout.onMeasure(FrameLayout.java:208) > ... > ... > > It'd be great if I could get this to work, im fairly sure it would be > possible even if its does require a hack of some sort... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

