Hi,

In my application, i need to display 2 webviews inside a linearlayout in
vertical orientation. The code looks something like this on the onCreate
method of my activity:

        LinearLayout container = new LinearLayout(this);
        container.setOrientation(LinearLayout.VERTICAL);

        WebView mWebView = new WebView(this);
        WebView mWebView2 = new WebView(this);

        mWebView.loadUrl("http://www.google.com";);
        mWebView2.loadUrl("http://www.yahoo.com";);

        container.addView(mWebView);
        container.addView(mWebView2);
        setContentView(container);

Now, Webview has built-in scale gesture listener and if I try to scale the
first webview (mWebView), it will scale properly but then when I try to
scale the second one (mWebview2), it doesn't scale at all but it does
receive the touch events. Note that the two webviews are displayed at the
same time on the screen.

Any idea what's going on here or what should I do so that the second webview
will also scale? Is it a bug or a limitation?

-- 
Cheers,

*Marc Lester Tan *

http://www.appalert.co
http://moonphase.pendukosoftware.com
http://blogs.marctan.com

-- 
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

Reply via email to