EudyContreras / Skeleton-Bones

Library for dynamically generating skeleton loader drawables for Layouts and Views
MIT License
151 stars 15 forks source link

java.lang.IllegalArgumentException: parameter must be a descendant of this view #34

Open changjiashuai opened 12 months ago

changjiashuai commented 12 months ago

java.lang.IllegalArgumentException: parameter must be a descendant of this view at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:6388) at android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:6317) at com.eudycontreras.boneslibrary.framework.skeletons.SkeletonBone.recompute(SkeletonBone.kt:91) at com.eudycontreras.boneslibrary.framework.skeletons.Skeleton.recomputeAndBuild(Skeleton.kt:194) at com.eudycontreras.boneslibrary.framework.skeletons.Skeleton.onUpdate(Skeleton.kt:96) at com.eudycontreras.boneslibrary.framework.skeletons.SkeletonRenderer.update(SkeletonRenderer.kt:27) at com.eudycontreras.boneslibrary.framework.skeletons.SkeletonManager$startAnimation$1.invoke(SkeletonManager.kt:194) at com.eudycontreras.boneslibrary.framework.skeletons.SkeletonManager$startAnimation$1.invoke(SkeletonManager.kt:22) at com.eudycontreras.boneslibrary.extensions.AnimatorExtensionsKt$animate$3.onAnimationUpdate(AnimatorExtensions.kt:71) at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1579) at android.animation.ValueAnimator.animateBasedOnTime(ValueAnimator.java:1357) at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1502) at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146) at android.animation.AnimationHandler.access$100(AnimationHandler.java:37) at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1230) at android.view.Choreographer.doCallbacks(Choreographer.java:1029) at android.view.Choreographer.doFrame(Choreographer.java:925) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1217) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:233) at android.os.Looper.loop(Looper.java:344) at android.app.ActivityThread.main(ActivityThread.java:8212) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)