Skip to content

Cannot use NSPtrEZLayout in CoordinatorLayout with multiple recycler views #1

Open
@ngocmanh1609

Description

@ngocmanh1609

Hi, first of all, thanks for creating a good lib for the community! 🙇

But I'm facing a problem with your lib when integrating it to a view layout with multiple recycler views as the children of NestedScrollView.
Here is the view hierarchy:

<androidx.coordinatorlayout.widget.CoordinatorLayout>

  <com.google.android.material.appbar.AppBarLayout>
    <com.google.android.material.appbar.CollapsingToolbarLayout
      ...
      app:layout_scrollFlags="scroll|exitUntilCollapsed">

        <FrameLayout
        app:layout_collapseMode="parallax" />

    </com.google.android.material.appbar.CollapsingToolbarLayout>
  <com.google.android.material.appbar.AppBarLayout>

  <wtf.s1.ui.nsptr.view.NSPtrEZLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.core.widget.NestedScrollView>
      <LinearLayout>
        <!-- There are horizontal recycler views, and 1 vertical recycler views -->
      </LinearLayout>
    </androidx.core.widget.NestedScrollView>

</wtf.s1.ui.nsptr.view.NSPtrEZLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

I cannot pull down to refresh. Do you know how to fix?

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