Skip to content

滑动事件问题 #4

Description

@Zvirtuey

<com.dl7.drag.DragSlopLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/dsl_drag"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
app:mode="drag_outside">

<!-- Content View -->
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

   <!--..............-->

</LinearLayout>


<!-- Drag View -->
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clickable="true"
    android:orientation="vertical">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:gravity="center_vertical"
        android:text="title" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/rv_member"
        android:layout_width="match_parent"
        android:layout_height="600dp"
        android:background="@color/white2" />

</LinearLayout>

</com.dl7.drag.DragSlopLayout>

如果RecyclerView 数据量多的时候,展开dragview后RecyclerView 滑动事件失效,数据只展示一部分,如何解决dragview的滑动和RecyclerView滑动,当RecyclerView滑到顶部在触发dragview下滑 ,当dargview上滑到最大位置在触发RecyclerView上滑。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions