NestedScrollView and WebView

I have a NestedScrollView with a WebView inside, and I'm using a breaking toolbar.

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="fill_vertical" > <WebView android:id="@+id/webView" android:layout_width="match_parent" android:layout_height="match_parent" /> </android.support.v4.widget.NestedScrollView> 

When I load webView content, and the content has more height than the screen, it works fine. The toolbar is hidden / displayed on the scroll.

The second situation is that the content of the web view is small. When I hung the NestedScrollView from the bottom and dragged it up, the toolbar disappeared and dragged onto the bottom toolbar.

When I try to drag from the WebView , this does not work, the view is still in one place.

Any idea how to fix this.

Do not allow Toolbar to hide when WebView content WebView too small or disable scrolling in WebView

+5
source share

All Articles