Android Webview scrolling erroneous when loading flash site

I open a simple flash website in my web browser using the following code:

Java Code:

package com.sample.webview; import android.app.Activity; import android.app.ProgressDialog; import android.graphics.Bitmap; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Button; public class SampleWebViewActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final WebView webView = (WebView) findViewById(R.id.webview); final ProgressDialog progress = new ProgressDialog(this); progress.setMessage("loading"); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setPluginsEnabled(true); webView.getSettings().setBuiltInZoomControls(true); webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); progress.show(); } @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); progress.dismiss(); } }); Button mButton = (Button) findViewById(R.id.button); mButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { webView.loadUrl("http://www.fusioncharts.com/demos/features/#linkedcharts-for-easy-drill-down"); } }); } } 

main.xml:

 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Button android:id="@+id/button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="5dp" android:text="Load URL" /> <WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margin="5dp" /> </LinearLayout> 

Now that the page is fully loaded, and I'm trying to scroll down to view the rest of the content, a web view appears on top of the "Download URL" button. Check out the screenshot:

enter image description here

while it should look like this:

enter image description here

Please suggest what I should do to make it work correctly.

Edit: I am using a galactic note (OSv2.3.5) with the latest version of both Flash Player and Adobe Air.

+4
source share
2 answers

I also tried this, but I think the only solution for this is to use only one web view in your xml, so you have no other built-in controls.

+2
source

It really is broken on Android. If you try to use the assembly panel in the upper panel, it will also follow the flash. I would recommend you go (far) from the flash. There are some discussions about this in google groups, and some in stackoverflow, but it all ends without any good results. The only good suggestion I found was to use the flash to cover other components of the flash = /

0
source

All Articles