我有一個SwipeRefreshLayout內的Webview,它工作正常。但只要我需要在webview中向上滾動,pull to refresh函數就會被調用。有什麼方法可以在webview中的特定區域被觸摸時禁用該功能?這是我的LayoutFile在特定區域禁用Android SwipeRefreshLayout
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android:android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</android:android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>