Scroll does not work in Android WebView

0

I am uploading a web page in a WebView , but it will not let me do the scroll .

This is the image from the Google Chrome browser on a pc, here it works well.

But in Android loading it from a WebView I do not use the scroll , it does not scroll down.

    
asked by Sergio Andres Moreno Herrera 20.12.2017 в 16:34
source

2 answers

0

It should work but what you can try is to make a ScrollView and put the WebView inside so forces that scroll.

I would do it like that

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="10dp"
    android:fillViewport="false">

//Añadir el webView dentro


</ScrollView
    
answered by 20.12.2017 в 16:38
0

Instead of putting a WebView inside a ScrollView, WebView has the option to add a scrollbar. This is a sample code:

WebView v = (WebView) findViewById(R.id.webview); 
v.setVerticalScrollBarEnabled(true);
v.setHorizontalScrollBarEnabled(true);

However, old android browsers do not allow multitouch javascript runtime events. Even so, if the API shows the zoom controls, it could be an option. I think you can not do much about it, except include the map via API

    
answered by 20.12.2017 в 20:28