Android - Webview Cuts Off
I currently have a webview that displays a current site. However, it cuts off the side of the page. See the picture below. Is there anyway to fix this? See my code and xml below to
Solution 1:
Two possibilities here:
Look if you got padding/margin in your parent view (the tabhost layout).
Add following to your:
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true" />
Solution 2:
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.
Post a Comment for "Android - Webview Cuts Off"