解决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就会出现异常(好坑啊)
原文地址http://www.itkeyword.com/doc/4463649828823971x358/view-can-not-be-anchored-to-the-the-parent-coordinatorlayout
结果出现了如题异常
网上搜索解决了问题
原来是有 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
相关文章推荐
- 解决 android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
- The following classes could not be found: - ImageView (Change to android.widget.ImageView, Fix Build
- Android eclipse unable to launch:The selection can not be launched,and there are no recent launches
- Sheet can not be presented because the view is not in a window的解决办法,和window的简单使用
- 解决 android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
- 解决Sheet can not be presented because the view is not in a window这样的问题
- ClassCastException: android.widget.ImageView can not be cast to android.view.ViewGroup
- Eclipse:Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart. 解决方法
- ERROR: Unable to launch the RTL Schematic process. The input NGR file, Can not fnd the module的解决方法
- The Struts dispatcher can be not found---解决办法
- Failed to execute request because the App-Domain could not be created. Error: 0×80131902的解决方法
- (android problem)can't cast android.widget.linearlayout to android.widget.textview
- Android中 View not attached to window manager错误的解决办法
- CAB布署 The INF file contains Unicode characters that could not be converted correctly to ANSI的解决
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI的彻底解决
- “cannot access the ClassView information file, ClassView information will not be available.”的解决办法
- 【解决方法】this install package could not be opened. verify that the package exists and that you can ac
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- 对话框子视图Android自定义Dialog二次调用报错解决方法:The specified child already has a parent. You must call removeView()-java教程
- import android包出错(The import android can not be resolved)