gpt4 book ai didi

android - LinearLayout$LayoutParams 不能转换为 CoordinatorLayout$LayoutParams

转载 作者:行者123 更新时间:2023-11-29 15:41:50 25 4
gpt4 key购买 nike

我试图在 2 个小部件/布局之间创建一个 float 操作按钮

我 99% 确定我已经使用了这个教程并且有效 How can I add the new "Floating Action Button" between two widgets/layouts

但是现在当我再次尝试这样做时,我遇到了这个错误

Exception raised during rendering: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

不知道如何解决?以及如何创建这样的 View enter image description here

最佳答案

自从使用 android support-design-lib 24.2.0 以来,我遇到了类似的问题,而 24.1.1 一切正常。

更新: Here是Android开源项目-Issue Tracker上的对应issue

关于android - LinearLayout$LayoutParams 不能转换为 CoordinatorLayout$LayoutParams,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39144813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com