Android WebView not respecting scaling percentage on physical devices...

Posted by fiXedd on Stack Overflow See other posts from Stack Overflow or by fiXedd
Published on 2010-06-11T19:29:55Z Indexed on 2010/06/11 22:22 UTC
Read the original article Hit count: 229

Filed under:
|

I have a WebView which I'm trying to have scale to a certain percent on loading the page. The iPhone version of this software uses the HTML meta-tag:

<meta name="viewport" content="width=320, initial-scale=0.95, maximum-scale=2.0, user-scalable=1">

Since Android's WebView doesn't seem to respect that tag I hard-coded the percent using setInitialScale(). However, the WebView is just flat-out ignoring this method call. No matter what number I put in there it shows at 100%.

Ideas?

Update: It's working fine in the emulator, it's only failing on my Droid (Motorola) and my G1 (HTC).

© Stack Overflow or respective owner

Related posts about android

Related posts about webview