将布局xml
文件中的layout_behavior
属性移动到布局的ConstraintLayout
标签内。例如:
注意:@string/appbar_scrolling_view_behavior
对应的是CoordinatorLayout
的行为。如果ConstraintLayout
不在CoordinatorLayout
中,那么应该使用@string/bottom_sheet_behavior
。如果在其他布局中使用此属性,应该使用相应的行为名称。
上一篇:编译失败:Task :react-native-screens:compileDebugJavaWithJavac FAILED
下一篇:编译失败:无法编译 ./node_modules/@material-ui/core/ButtonBase/ButtonBase.js。