You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.view.ViewGroup$MarginLayoutParams
at android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1252)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
at android.widget.ScrollView.onMeasure(ScrollView.java:337)
at android.view.View.measure(View.java:17430)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5463)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
The text was updated successfully, but these errors were encountered:
brennantaylor
changed the title
_ScrollView does not implement MarginLayoutParams
_ScrollView does not implement MarginLayoutParams receiver
May 31, 2015
Previously the extractLayoutParams method was simply checking
the immediate ViewGroup for any inner class with "LayoutParams"
in its name. Now it traverses the ViewGroup's inheritance
tree, finds the nearest generateLayoutParams() method, and
uses its return type to determine the correct LayoutParams node.
Should fixKotlin#54
Signed-off-by: Eddie Ringle <eddie@ringle.io>
The example will repro the stacktrace at the bottom on Android 5.0.0
You may need a theme with the actionbar enabled. I am using
android:Theme.Material.Light.DarkActionBar
The text was updated successfully, but these errors were encountered: