Re: [android-developers] Getting the height of a TextView

2010-09-19 Thread wang xin
Before a view can draw on the canvas, the width & height will be 0, you can get them in the onDraw() of the view. On Sun, Sep 19, 2010 at 11:46 AM, Bret Foreman wrote: > I have a TextView where I have called setText() and setWidth(). This > causes the text to wrap and the view to grow longer wit

Re: [android-developers] How can we resize/zoom a web page in WebView control?

2010-07-21 Thread wang xin
if you want resize/zoom a webpage in webview, i can help, i have make it works. just add below script in your html file: ** you can resize the num to control the view size. On Sat, Jul 17, 2010 at 12:55 AM, Freedom wrote: > Basically, we want to control the default visible part in a webview >

[android-developers] scroll not support with javascript in webview

2010-07-21 Thread wang xin
hi ~, -- To Be Greate... -- 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.c

[android-developers] the webview will crash

2010-07-14 Thread wang xin
I use WebView to show a rich-javascript web page, and it crash in seconds when start, i paste the logcat information below, appreciate for any advise! [locat info] 07-13 15:42:45.690: INFO/DEBUG(54): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 07-13 15:42:45.690: INFO/DEBUG(54

[android-developers] Any way to get the global application object before activity is created?

2009-03-04 Thread Wang, Xin
Hi, I am trying to write some test instrumentation codes. I need to use the global application object. I know activity class provides an interface getApplication() to get the object, but I want to use it before the activity is created. Any way to get that object? Thanks, Wang Xin

[android-developers] Will the compatability Test cases be released to AOSP Master branch?

2008-12-26 Thread Wang, Xin
Hi, I want to know if the Google has a plan to release the compatability test cases into the AOSP master branch? If the answer is yes, then when it could be? Thanks, Xin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr