Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个带有可折叠工具栏的应用程序,但出现错误“在包 android 中找不到属性‘layout_collapseMode’的资源标识符”
我尝试在 gradle 中添加不同的库,但错误仍然存在
这是错误和错误的突出显示的 xml 代码
在第 36 行将前缀 从android :layout_collapseMode="parallax"更改为app :layout_collapseMode="parallax" 。
此外,此行应属于 RelativeLayout(ImageView 的父级),如果您打算实现布局的视差折叠,它是 CollapsingToolbarLayout 的直接子级。