I'm using WebView to display some content in my application, and for
the application help.  I'd like to support zoom so that folks with
small screens or aging eyes will be able to magnify the text etc.

So, I used the recommended code from the WebView docs (and many
examples).  Here is how it looks in my HelpActivity.java:

     public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);

        WebView helptext = (WebView)findViewById(R.id.helpText);
 
helptext.loadData(getResources().getText(R.string.helpTextPlaceholder).toString(),
"text/plain", "utf-8");
        WebSettings ws = helptext.getSettings();
        ws.setSupportZoom(true);  // not sure if this is needed
        ws.setBuiltInZoomControls(true);

But when I run the app on my phone (HTC Eris), multitouch gestures are
ignored and the zoom controls appear.
But the device supports multitouch gestures for zoom in other
applications, so I know the hardware works.

Suggestions appreciated!

...nz

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

Reply via email to