When I am using CoordinatorLayout, I just want to nested scroll view state or please give me an suggestion for how to suddenly stop scrolling..
Because I am using scrollTo()
function it's not working properly, when override the scrolling. So I want to stop previous scrolling then call scrollTo()
function.
My code is :
scrollView.post(new Runnable() {
@Override
public void run() {
scrollView.scrollTo(0, contentHeadingView.getTop());
}
});
And any idea to get NestedScrollView scrolling action is stopped and NestedScrollView scrolling action is start. It will more help full for me.
Please help me.
I hope you someone to give me a solution.
Thanks.