From d7462e1a5c8945aec460a2341a28fa9bc37de2ce Mon Sep 17 00:00:00 2001 From: Denis Zakharov Date: Thu, 24 Mar 2016 00:03:09 +0300 Subject: [PATCH] Android WebView support --- .../PullToRefresh.Droid/PullToRefreshLayoutRenderer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PullToRefresh/PullToRefresh.Droid/PullToRefreshLayoutRenderer.cs b/PullToRefresh/PullToRefresh.Droid/PullToRefreshLayoutRenderer.cs index e8ad1f9..39a6ce1 100644 --- a/PullToRefresh/PullToRefresh.Droid/PullToRefreshLayoutRenderer.cs +++ b/PullToRefresh/PullToRefresh.Droid/PullToRefreshLayoutRenderer.cs @@ -253,6 +253,11 @@ bool CanScrollUp(ViewGroup viewGroup) var scrollview = child as Android.Widget.ScrollView; return (scrollview.ScrollY <= 0.0); } + else if (child is Android.Webkit.WebView) + { + var scrollview = child as Android.Webkit.WebView; + return (scrollview.ScrollY > 0.0); + } else if (child is Android.Support.V4.Widget.SwipeRefreshLayout) { return CanScrollUp(child as ViewGroup);