SwipeRefreshLayout禁用向上滚动的webview内部内容

时间:2018-04-19 15:30:05

标签: android xamarin webview xamarin.android

我在Swiperefreshlayout中有一个Xamarin Android Webview(我使用它来重新加载webview内容),如下所示:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
      <EditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/txtURL" />
      <LinearLayout
          android:orientation="horizontal"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:id="@+id/linearLayout1">
       <Button
            android:text="Go"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:id="@+id/btnGO"
            android:layout_weight="2" />
        <Button
            android:text="Forward"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:id="@+id/btnForward"
            android:layout_weight="1" />
      </LinearLayout>
      <android.support.v4.widget.SwipeRefreshLayout
          android:id="@+id/swipeContainer"
          android:layout_width="match_parent"
          android:layout_height="match_parent">

        <android.webkit.WebView
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:id="@+id/webView" />
      </android.support.v4.widget.SwipeRefreshLayout>
   </LinearLayout>

问题:我在webview中有一些表每当我快速滚动表的内容时,我无法将其向上滚动..当我这样做时,工具栏后面会出现刷新图标并重新加载页面。 有什么建议吗? enter image description here

0 个答案:

没有答案