NestedScrollview 嵌套 RecyclerView出现滑动冲突解决方法
来源:互联网 发布:阿里云网络接入服务商 编辑:程序博客网 时间:2024/04/28 07:20
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" android:overScrollMode="never" android:background="@color/app_bg" android:layout_below="@+id/rl_title"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:padding="@dimen/space_10" android:orientation="vertical"> <LinearLayout android:id="@+id/ll_add" android:layout_width="match_parent" android:layout_height="wrap_content" android:focusableInTouchMode="true" android:background="@color/white"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:padding="@dimen/space_10" android:orientation="horizontal"> <ImageView android:layout_width="@dimen/space_14" android:layout_height="@dimen/space_14" android:src="@mipmap/mine_s"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/main_color" android:layout_marginLeft="@dimen/space_6" android:text="添加旅客" android:textStyle="bold"/> <View android:layout_width="0dp" android:layout_height="1px" android:layout_weight="1"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/next"/> </LinearLayout> </LinearLayout> <android.support.v7.widget.RecyclerView android:id="@+id/recycle" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="@dimen/space_10" android:scrollbars="none" android:overScrollMode="never" android:focusableInTouchMode="false"/> </LinearLayout> </android.support.v4.widget.NestedScrollView></RelativeLayout>
xml代码如上
解决方法
recyclerView.setNestedScrollingEnabled(false);
0 0
- NestedScrollview 嵌套 RecyclerView出现滑动冲突解决方法
- NestedScrollView嵌套RecyclerView滑动冲突
- 解决NestedScrollView 嵌套 RecyclerView出现的滑动冲突问题
- NestedScrollView中嵌套ViewPager或RecyclerView出现滑动冲突的解决
- Android之NestedScrollView 嵌套 RecyclerView 滑动冲突的问题
- NestedScrollView嵌套RecyclerView滑动到底部事件冲突问题
- 解决NestedScrollView中嵌套RecyclerView滑动冲突问题
- RecyclerView与NestedScrollView滑动冲突
- NestedScrollview 嵌套 RecyclerView 滑动卡顿,ScrollView 嵌套 RecyclerView 冲突 解决方案
- ScrollView/NestedScrollView嵌套RecyclerView滑动不流畅
- CoordinatorLayout与NestedScrollView嵌套RecyclerView滑动问题
- NestedScrollView嵌套RecyclerView滑动卡顿解决方案
- RecyclerView嵌套RecyclerView滑动冲突
- 解决nestedScrollview 嵌套 recyclerview出现的异常
- RecyclerView嵌套滑动冲突处理
- ScrollView嵌套RecyclerView滑动冲突
- ScrollView 嵌套 Recyclerview 滑动冲突
- NestedScrollView+RecyclerView优雅的解决滑动冲突问题
- 浅谈MVC设计模式和SSH框架的关系
- Linux Centos7下自动构建工具Jenkins安装及使用
- 3.抽象工厂模式(Abstract Factory)
- 4. 建造者模式
- 产品:Axure学习一
- NestedScrollview 嵌套 RecyclerView出现滑动冲突解决方法
- 提升中层管理者【技术转管理】
- 常见术语
- 48. Rotate Image
- 5. 单例模式
- HTML嵌入到iOS页面的开发
- CS0131号错误是什么
- 一起玩游戏技术支持
- 大数据学习笔记之四十三 深度学习的基本方法