3

I have this layout

<FrameLayout>
    <NestedScrollingView>

        <LinearLayout>
               //some views 
        </LinearLayout>

        <RecyclerView/>

    </NestedScrollingView>
</Frame>

I want something to happen once the user stopped scrolling, and another thing once he starts scrolling..!

What I've tried:

  • I tried using recyclerView.addOnScrollListener with the help of the States, but this isn't allowed because of this recyclerView.setNestedScrollingEnabled(false)

  • I looked everywhere, but nothing on NestedScrollView expect this answer it seems there's a workaround, but I don't know how to apply the condition, I want to use if statement to check for Idle and Dragging states.!? any help with that!?

  • This question has a lot of greats solution for the problem but it's for ScrollView not nested, is there a solution that can be applied for the nested somehow..! I've read them but couldn't figure one.!

Alaa AbuZarifa
  • 851
  • 10
  • 32

0 Answers0