Add following code in main(parent) layout in your layout.xml
android:descendantFocusability="blocksDescendants"
Hope it will work. And set following property in your webview
android:focusable="false"
android:focusableInTouchMode="true"
See it:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:descendantFocusability="blocksDescendants"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivityFragment">
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="false"
android:focusableInTouchMode="false">
</WebView>
</RelativeLayout>