我有一个布局,包括一些TextViews和ImageViews。 他们是否没有创建一种简单的方法来在简单的滚动视图/ linearlayout上包含pinch zoom? 我看过一些代码,但他们只在imageviews上工作。

最近我找到了 setDisplayzoomControls(Boolean)

是否有可能在具有TextViews的布局上进行这项工作? 如果不是,也许有人提供一个代码,它将通过捏缩放放大/缩小我的布局。

谢谢。

有帮助吗?

解决方案

Try using android-pinch, it is supposed to work on web-views as well http://code.google.com/p/android-pinch/

其他提示

Also,

Take a look at this: http://code.google.com/p/android-multitouch-controller/

It will enable you to add multi touch handlers to almost any widget.

Note that due to some hardware problems on older devices, you might not always get the right result.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top