Android - webview cuts off

半城伤御伤魂 提交于 2019-12-01 19:03:14

Two possibilities here:

  1. Look if you got padding/margin in your parent view (the tabhost layout).

  2. Add following to your:

<supports-screens android:smallScreens="true"
      android:normalScreens="true" 
      android:largeScreens="true"
  android:anyDensity="true" />

From your picture it looks like you're also using Tabs. It's likely a result of the embedded webview not knowing its parents bounds properly and taking the width of the screen instead of the tab view.

You can fix this in a couple of ways, but probably the quickest/dirtiest way would be messing around with the margin of the webview to match that of your tab layout.

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