Android Webview scroll is misbehaving when loading a flash website -


i opening simple flash based website in webview using 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 activity 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 when page loaded , trying scroll down view rest of content, webview coming on top of "load url" button. check screenshot:

enter image description here

while should like:

enter image description here

please suggest, should works correctly.

edit: using galaxy note(osv2.3.5) latest version of both flash player , adobe air installed.

i have tried things think solution using single webview in xml, so, don't have other native controls.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -