On Sat, Feb 19, 2011 at 8:33 AM, Neilz <neilhorn...@gmail.com> wrote:
> Hi Mark, thanks for response. I like your last comment, you're
> thinking on the same lines as me :-)
>
> Your step1 - are you thinking of code in the HTML that's loaded into
> the webview, or Android code which can catch these events?

HTML code that's loaded into the WebView. If you don't control the
HTML in question, or if the HTML will be used for non-Android devices,
this option is probably out the window.

The nice thing about sledgehammers is reuse: you can probably find
other things to smash with one.

> Another thing I've thought of:
>
> The problem can be solved by 'pinching' the screen to resize it
> slightly. As soon as it's been resized, the keyboard works. I wondered
> if it's possible to programmatically resize the screen as if the user
> 'pinched' it?

OK, now that *really* feels like a device bug.

You can try zoomIn() and zoomOut() on the WebView, though that does
not give you any control over the amount of, um, zoomage.
setDefaultZoom() on WebSettings exists, but is extremely
coarse-grained. You can also putter around the WebView source code and
see if you can find out what it does on a pinch gesture.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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