On Fri, Oct 23, 2009 at 1:33 PM, mini maheshwari <[email protected]> wrote: > > Hello.... > > I want to determine the width and the height of the webview .i have > already tried using > > webView.getWidth(); webView.getHeight(); > > but the log always show them 0. any help will be appreciated.. > > thanks.... >
Make sure you are not trying to get the width and height before the webview has been drawn. e.g. if you do a getWidth() in the Activity onCreate() callback. If this is not the case, post up your source code so we can determine what is going wrong. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
