choman
choman

Reputation: 787

Swipe to refresh is called out too soon in webview

I am implementing a program with Nav Drawer which has Toolbar, tablayout, swipe refresh layout & webview

to scroll the webview I am using this repo NestedWebView

Everything works fine when the webview is scrolled up the toolbar will hide and when pulled down the toolbar will show . The problem I have now is when i swipe down my webview (toolbar also comes down)the swipeRefreshLayout is also called making the webview reload again. How can I enable the swipe layout to be called only at long pull ? or is there any way I can provide more control? I really want to keep this layout but the swipe to refresh is too sensitive .

Upvotes: 1

Views: 1312

Answers (1)

choman
choman

Reputation: 787

setDistanceToTriggerSync(int distance) 

pretty simple.

Upvotes: 2

Related Questions