Android get height of webview content once rendered

后端 未结 5 1425
忘了有多久
忘了有多久 2020-12-14 18:44

I\'m trying to get the height of a webview once it has been rendered. It always returns null, I\'ve tried getHeight, getMeasuredHeight, getCo

5条回答
  •  孤街浪徒
    2020-12-14 19:26

    ok, this is pretty later, but I think it nice solution, just use if (webView.getContentHeight() > 0) if ture it means it finsihed, else, it not finished yet

提交回复
热议问题