我有一个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>