问题
I am making a android app using jquery mobile and web view with eclipse.
When i test it in the emulator or export it to my galaxy s2 i get a white line on the right and the whole app can be moved around.
When i put the code in phonegap it works ok but i want to build it in eclipse so why do i get the white stuff on the right? Here is a link to the emulator:
http://www.lucyseven.com/screen.jpg
Thanx.
回答1:
This fixed it for me:
WebView webVw = (WebView) findViewById(R.id.yourwebview);
webVw.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
回答2:
Check your XML, and set it to fill_parent for width.
来源:https://stackoverflow.com/questions/9564023/white-line-in-eclipse-web-view