javascript - Android WebView Load site Issue -


i have url blog site , load android app this

 webview = (webview) findviewbyid(r.id.webview);  webview.getsettings().setjavascriptenabled(true);  webview.getsettings().setloadwithoverviewmode(true);  webview.getsettings().setusewideviewport(true);  webview.loadurl(myurl);  webview.setwebviewclient(new customwebviewclient()); 

customwebviewclient class

 private class customwebviewclient extends webviewclient {      @override     public void onpagestarted(webview view, string url, bitmap favicon) {         super.onpagestarted(view, url, favicon);         showprogressdialog(browseractivity.this);     }      @override     public void onpagefinished(webview view, string url) {         hideprogressdialog(browseractivity.this);     } } 

the site loads , displays images on 2 rows. if open blog phone browser , scroll page end, more images loaded automatically. problem if blog opened app shows 2 rows , doesn't load rest of images. can problem? how fix this?

 webview.getsettings().setlayoutalgorithm(layoutalgorithm.single_column); 

or use in xml file

<scrollview android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="vertical"    >   <webview     android:id="@+id/mywebview"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:scrollbars="none" /> </scrollview> 

in java file

webview.setscrollcontainer(false); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -