Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use NSPtrEZLayout in CoordinatorLayout with multiple recycler views #1

Open
ngocmanh1609 opened this issue Dec 19, 2022 · 1 comment

Comments

@ngocmanh1609
Copy link

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?

@ngocmanh1609
Copy link
Author

FYI, I can see the loading indicator when I fling the finger to pull to refresh very fast, otherwise I can't see it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant