In WebViewClient.onPageFinished is getContentHeight still 0 :-(
Dne čtvrtek, 10. června 2010 3:17:19 UTC+2 yangjian napsal(a):
Did you show the webview in a activity? If you are not show it the
getContentHeight() will return 0;
Try to call getContentHeight use the WebView reference
hello,
I have a HTML file in a web view. I want to find the length of the content
of that HTML file.
I have tried all methods like *getContentHeight*() and *getHeight*() but
it doesn't gave me the exact height which i want.
There is one Protected method in View class
hello,
I have a HTML file in a web view. I want to find the length of the content
of that HTML file.
I have tried all methods like *getContentHeight*() and *getHeight*() but
it doesn't gave me the exact height which i want.
There is one Protected method in View class
Did you show the webview in a activity? If you are not show it the
getContentHeight() will return 0;
Try to call getContentHeight use the WebView reference witch
WebViewClient.onPageFinished(WebView view, String url) returned.
_
From: android-developers@googlegroups.com
4 matches
Mail list logo