coordinatorlayout 显示错乱问题

来源:互联网 发布:网络弊大于利尖锐问题 编辑:程序博客网 时间:2024/04/30 06:11

要使用coordinatorlayout  实现滚动效果

1、coordinatorlayout  在外层包裹可隐藏的布局和相应滑动的 布局

2、在需要隐藏的布局添加:
app:layout_scrollFlags="scroll|enterAlways"
3、在响应滑动的布局添加:
app:layout_behavior="@string/appbar_scrolling_view_behavior"
4、listview好像不支持,
NestedScrollView外层需要加上一层linlearlayout或者其它父布局,防止布局显示错乱

0 0