Android layout 水平滚动视图在recyclerview中未正确滚动
嗨,我必须在水平滚动视图中实现回收器视图。我必须同时使用水平滚动视图滚动和回收器视图项目垂直滚动。回收器视图和水平滚动视图之间存在冲突Android layout 水平滚动视图在recyclerview中未正确滚动,android-layout,Android Layout,嗨,我必须在水平滚动视图中实现回收器视图。我必须同时使用水平滚动视图滚动和回收器视图项目垂直滚动。回收器视图和水平滚动视图之间存在冲突 <View android:id="@+id/header_view" android:layout_width="100dp" android:layout_height="30dp" android:layout_centerHorizontal="true" androi
<View
android:id="@+id/header_view"
android:layout_width="100dp"
android:layout_height="30dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/header_background">
</View>
//customn scroll view
<com.app.Constants.CustomHorizontalScrollView
android:id="@+id/layer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/hView"
android:orientation="vertical">
</com.app.Constants.CustomHorizontalScrollView>
在这件事上有谁能帮忙吗我已经用那件事出击了有谁能帮忙吗我已经用那件事出击了
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="360dp"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycleview_list"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
recyclerView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
@Override
public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
Log.e("innnn","func");
rv.getParent().requestDisallowInterceptTouchEvent(true);
return false;
}
@Override
public void onTouchEvent(RecyclerView rv, MotionEvent e) {
}
@Override
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
}
});