So you mean pinch-zoom in the Browser/WebView. Check git, looks like it uses the same ScaleGestureDetector and auto-enables it if the device supports multi-touch (search for "void updateMultiTouchSupport"). I haven't played w/the WebView that much so not sure if just setting the useBuiltInZoomControls=false disables all zoom functionality or just the onscreen zoom buttons (again assuming the device supports multi-touch at all and useBuiltInZoomControls sets the flag accordingly). I seriously doubt they would have removed this in 2.2, if anything I would guess they just allow you set your own ScaleGestureDetector (since it's now public) and make the setNewZoomScale() method public.
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/webkit/WebView.java;h=c5c14d3ee08ac1e4338eac5d96489cff42b5b526;hb=HEAD On May 21, 12:37 am, Mariano Kamp <[email protected]> wrote: > No, that is not the case. Since 2.1 update 1 pinch to zoom works on the N1 > (and Milestone), but only when this is > set:http://developer.android.com/intl/zh-TW/reference/android/webkit/WebS...) > > Looking at the code would not tell me what the API changes are. And as I > said I didn't find in the official documentation. So it likely isn't there > until I don't look in the right place. > > > > > > On Fri, May 21, 2010 at 5:22 AM, Nerdrow <[email protected]> wrote: > > There is no generic "multitouch," you interpret MotionEvents and > > perform the zoom yourself. Looks like they made this easier in 2.2 w/ > > ScaleGestureDetector, which at a glance looks to be the same as the > > class in Gallery2. You can read that code to see how its implemented. > > > On May 20, 6:54 pm, Mariano Kamp <[email protected]> wrote: > > > Hi. > > > > In Android 2.1 update 1 multitouch was silently added. Unfortunately > > > it is only available when also the zoom picker is **active**?! I am > > > sure there are cases where that setting makes sense, but it was not > > > possible to separately turn on one or the other. > > > I thought they didn't want to change the API with with an "update-1" > > > and would now surface the API in Android 2.2. > > > At least my initial check didn't turn up anything in that respect though > > ;-(. > > > > Also I don't know if multi-touch pinch/zoom still works in Android > > > 2.2, because I don't know how to test it on the emulator. Does anybody > > > know or has other insights to share? > > > > On a sidebar. Do I see this right? The developers get the new Android > > > version before their users? Loving it! Thanks. > > > > Cheers, > > > Mariano > > > > Btw. OT, but the first 45 minutes of the keynote totally rocked. Much > > > better than the latest three Steve Notes combined. > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<android-developers%2Bunsubs > > > [email protected]> > > > For more options, visit this group athttp:// > > 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%2Bunsubs > > [email protected]> > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://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 [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-developers?hl=en

