LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams

前端 未结 5 1104
清酒与你
清酒与你 2021-02-01 12:46

Explanation and solution at the bottom.

I am developing one slider layout animation, the animation work fine but when all processes end, they get next E

5条回答
  •  执念已碎
    2021-02-01 13:06

    I ran into a similar problem and I found the answer here. Basically, you should choose the LayoutParams depending on the parent, in your case new LinearLayout.LayoutParams should be new RelativeLayout.LayoutParams.

提交回复
热议问题