Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't scroll webview in Android
    primarykey
    data
    text
    <p>I got some strange problem with my WebView. The problem is that I can't scroll the page in Android 2.2 and 2.3 if it's longer than the screen. The only way to scroll the WebView is in Android 4.0.3. What's the problem or is it just not possible to scroll the WebView in Android versions lower than 4.0.3?</p> <p>This is my layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:layout_width="fill_parent" android:id="@+id/rltvLayout01" android:layout_height="fill_parent" android:background="@color/white"&gt; &lt;LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@+id/ad_layout"&gt; &lt;WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" android:scrollbars="none" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/ad_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true"&gt; &lt;com.google.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" ads:adUnitId="-------------" ads:loadAdOnCreate="true" ads:adSize="BANNER" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p><strong>EDIT 23:06:</strong></p> <p>I just found the problem! The actual code I'm using is not causing this behavior, it's the loaded website that's causing the problem. In my mobile website i'm using viewport to show it correctly and FroYo and Gingerbread's WebView can't handle that well. So after removing the viewport meta tag it works perfect! Thank you anyway Thomas K, the vertical orientation also made it scrollable after removing the viewport!</p> <p><strong>So get rid of the viewport tag in your html code if you want to have your webview working in Froyo and Gingerbread!</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload