如何启用捏和伸展我的应用程序的用户界面 [英] How can i enable pinching and stretching on my app's UI

查看:147
本文介绍了如何启用捏和伸展我的应用程序的用户界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这一个TextView表布局。由于每一个行内的文本是足够小,以适应屏幕上,我希望我的用户能够捏和伸展屏幕,使他们可以放大。但是,目前该功能默认情况下不工作。我怎样才能使捏和拉伸画面,然后呢?

I've a table layout with a textview in it. As the texts within every row are small enough to fit into the screen, I want my users to be able to pinch and stretch the screen so that they can zoom in. But, currently that feature is not working by default. How can i enable pinching and stretching the screen, then?

感谢

推荐答案

您可以自己实现它。 :通过阅读本教程多部分启动http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747 (第6部分是专门捏和变焦),这等岗位中在开发者博客:的http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

You can implement it yourself. Start by reading this multipart tutorial: http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747 (part 6 is devoted to pinch and zoom) and this other post in the devs blog: http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

还有那看起来很有希望(虽然我没有尝试)库: HTTP://$c$c.google.com/p/android-pinch/

There's also a library that looks promising (although I did not try it): http://code.google.com/p/android-pinch/

这篇关于如何启用捏和伸展我的应用程序的用户界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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