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 thisrecyclerView.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 useif
statement to check forIdle
andDragging
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.!