Im trying to shrink the width content of my webview down to fit with my screen so i dont have to scroll side way anymore...i tried so many code but it still doesnt anyone have any idea how??
heres my code so far.
postView = (WebView) findViewById(R.id.postView);
postView.setScrollBarStyle(WebView.OVER_SCROLL_NEVER);
postView.setInitialScale((int) .8);
WebSettings settings = postView.getSettings();
settings.setLoadWithOverviewMode(true);
settings.setUseWideViewPort(true);
settings.setDomStorageEnabled(true);
settings.setJavaScriptEnabled(true);
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
Well you can define width of webview with screenwidth itself and add it to its param section.
This must solve your problem.
Hope, this helps.
Edit
Ok, now I get your problem. But I think in your case you should allow the user to get zoom in/out , so that user will get control for data he wants to view.
Add this statement