您的位置:首页 > 移动开发 > Android开发

解决android - View can not be anchored to the the parent CoordinatorLayout

2017-09-30 20:55 609 查看
今天照着新买的书学习代码

结果出现了如题异常

网上搜索解决了问题

原来是有 design更新了

在design:23.2.0’以上当把FloatActionBar的anchor写成CoordinatorLayout就会出现异常(好坑啊)

解决办法

这样的话FloatActionBar把anchor换一个就行了,别用CoodinatorLayout的,我后来换成一个布局里的一个Viewpager,问题解决

原文地址http://www.itkeyword.com/doc/4463649828823971x358/view-can-not-be-anchored-to-the-the-parent-coordinatorlayout
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐