Reputation: 4049
I am trying to create a small web app for my android device, I am testing it and there is a scrollbar on my screen (horizontal) no matter what i set the body width, I get the scrollbar. I noticed m.facebook.com doesn't have it. Do I just simply hide the scrollbar?
Upvotes: 1
Views: 191
Reputation: 508
Try webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
and it will add the scrollbar above the right edge of the WebView instead of making a theme colored line.
Upvotes: 0
Reputation: 6517
Try setting webView.setHorizontalScrollbarEnabled(false);
to your WebView
Upvotes: 0
Reputation: 520
Try :
webView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR);
^_^,pls check your AndroidManifest.xml
<uses-sdk android:minSdkVersion="4" /><supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"
/>
you must set android:anyDensity="true".
Upvotes: 2