android webview displaying blank page

后端 未结 14 860
借酒劲吻你
借酒劲吻你 2020-12-14 06:33

I have an android application that I am developing using the emulator running on android 2.3.3 with an embedded WebView in a framelayout nested in a linearlayout (vertical).

14条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 06:43

    I gave +1 because these were both valid assistance to getting the webview to working properly, but it was not the solution to my issue.

    What I didn't realize is I had a wrap_content on the include of my webview layout and this caused it to have a height of 0px. By setting this to fill_parent I resolved the issue. (Webview with white background and app with white background you cant really tell its not full height when it shows up as full height in the layout designer.)

    Thanks for your help though!

提交回复
热议问题