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 witch > WebViewClient.onPageFinished(WebView view, String url) returned. > ------------------------------ > > *From:* android-developers@googlegroups.com [mailto: > android-developers@googlegroups.com] *On Behalf Of *brijesh masrani > *Sent:* Wednesday, June 09, 2010 9:53 PM > *To:* android-developers@googlegroups.com; > android-beginn...@googlegroups.com > *Subject:* [android-developers] Problem in getting height of contetn in > Webview > > > > 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 " *computeVerticalScrollRange*() > " so if any one knows how to use this method in webview than please reply. > > If there is any alternative to find content height than please let me know. > > > > > > -- > Regards, > Brijesh Masrani > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en