Android: Forcing a WebView to a certain height (or triggering scrolling for a div) <p>I am building an app which contains an input form and a WebView. The project is available at <a href="http://code.google.com/p/android-sap-note-viewer/" rel="nofollow noreferrer">http://code.google.com/p/android-sap-note-viewer/</a></p> <p>The WebView will render a website based on the input and this page has a DIV with the main contents (could be hundreds of lines). I have no control of the contents on the website.</p> <p>Android WebKit doesn't seem to do any scrolling in a DIV, ref <a href="http://www.gregbugaj.com/?p=147" rel="nofollow noreferrer">http://www.gregbugaj.com/?p=147</a>. Therefore, only parts of the DIV is shown to the user, with no method of retrieving the rest of the text. <strong>My challenge is to find a way that all the text of the DIV is shown</strong>.</p> <p>My view is defined as the following: </p> <pre><code> &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;TextView android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_height="wrap_content" android:text="@string/lblNote" /&gt; &lt;EditText android:id="@+id/txtNote" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:numeric="decimal" android:maxLength="10" /&gt; &lt;Button android:id="@+id/bView" android:text="@string/bView" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&gt; &lt;WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:isScrollContainer="false" android:keepScreenOn="false" android:minHeight="4096px" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Here I've tried to hardcode the WebView to a large height in order to make sure the DIV is stretched out and shows all the text, and also force the LinearLayout to do the scrolling.</p> <p>However, the WebView is always adapting to the screen size (which would be good in most cases, but not this).</p> <p><strong>Any ideas on how to solve this problem?</strong></p> <p>(only solution I see now is to fetch the HTML myself, remove the DIV and send it to the WebView)</p>