Note that there are some explanatory texts on larger screens.

plurals
  1. POWebview jittery/jumping
    primarykey
    data
    text
    <p>I have a viewflipper that contains a webview. In some cases (seemingly random) the bottom part of the webview will appear to jitter/jump. This can last anywhere between a second and several seconds. Here's a video to illustrate what I'm talking about <a href="http://www.youtube.com/watch?v=I8s2P4R95r4" rel="nofollow">http://www.youtube.com/watch?v=I8s2P4R95r4</a></p> <p>I've now created a basic test project that reproduces the problem <a href="http://dl.dropbox.com/u/1256312/WebView%20Test.rar" rel="nofollow">http://dl.dropbox.com/u/1256312/WebView%20Test.rar</a></p> <p>The problem only occurs in Honeycomb, and usually only in landscape mode. I've tested on several 2.x devices and everything's fine.</p> <p>After searching I found another case where someone had a similar problem in Honeycomb, but they suggested that the cause was markup related. However the markup I'm using is pretty basic and in any case I've extracted it and made sure that it was valid.</p> <p>Below is the relevant code. I've removed a lot things from the view to eliminate the problem being elsewhere. View1 has a viewflipper. In the activity I create a number of custom views of type View2 (which contains the offending webview) and add them to the viewflipper.</p> <p>View1 </p> <pre><code> &lt;LinearLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"&gt; &lt;ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/question_flipper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="50dp"&gt; &lt;/ViewFlipper&gt; &lt;RelativeLayout android:id="@+id/FormulaAndResultLayout" android:layout_width="fill_parent" android:layout_height="75dp" ..... etc. </code></pre> <p>View2</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/QuestionLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:background="#123123"&gt; &lt;WebView android:id="@+id/question_web_view" android:layout_centerHorizontal="true" android:layout_below="@id/question_figure" android:layout_marginTop="5dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="none" android:layout_marginLeft="40dp" android:layout_marginRight="40dp" android:background="#444444"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>Loading the webview</p> <pre><code>qWebView = (WebView) view.findViewById(R.id.question_web_view); qWebView.loadDataWithBaseURL(null, String.format(questionHTMLHeader, qObj.questionText), "text/html", "utf-8", null); </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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