White line in eclipse Web view

十年热恋 提交于 2019-12-13 20:30:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!