Android的WebView中只能放大 [英] Android webview only zoom in

查看:124
本文介绍了Android的WebView中只能放大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTML输出,至极处于起步全屏。随着变焦控制,我可以放大/缩小。

i have a html output, wich is full screen at the start. With the zoom control i can zoom in/out.

我只想要放大,不出来了。所以:最小缩小我要的是全屏幕的100%。
与步骤i中的最大放大要400%。

I want only zoom in, and not out. So: the minimal zoom out i want is 100% of the full screen. And the maximal zoom in i want to 400%.

有没有办法做到这一点?

Is there a way to do it?

感谢

推荐答案

做这件事了艰辛的道路,我会建议

Doing it the hard way, I would suggest to


  • 禁用通过WebSettings.setBuiltInZoomControls内置变焦控制(假)

  • 添加使用的FrameLayout web视图顶部自己的变焦控制按钮

这篇关于Android的WebView中只能放大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆