如何通过onTouchListener旋转图像? [英] How to rotate image through onTouchListener?

查看:88
本文介绍了如何通过onTouchListener旋转图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要实现的功能,通过onTouchListener旋转图像()。请提供样品我code旋转图像。请帮我。

I have to implement functionality to rotate image through onTouchListener(). Please provide me sample code to rotate image. Please help me.

先谢谢了。

推荐答案

您需要键入补间动画的使用XML。
比,从Java code可以使acording这个XML视图行为。
这里是一个链接,可以帮助:
http://www.edumobile.org/android/android-beginner-教程/吐温动画/

you need to use an xml in type of "tween animation". than, from the java code you can make a view act acording to this xml. here is a link that help: http://www.edumobile.org/android/android-beginner-tutorials/tween-animation/

这篇关于如何通过onTouchListener旋转图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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