Android Question Font-size in cross-platform webview?

Sandman

Expert
Licensed User
Longtime User
I'm making a cross-platform app for Android and iOS. In it I have a webview, which shows html coming from my server. On Android everything looks just fine, but on iOS it's too small to read. I can adjust it so it's perfect in iOS, but that makes the text too large in Android.

The perfect solution would probably be to specify the font-size in the html document using the dip unit. However, as far as I can tell, that's not a unit that's available in css.

Have anyone else faced the same issue? If so, did you find a good solution to make it work well for Android and iOS at the same time?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…