【问题标题】:How to rotate an image in Android?如何在Android中旋转图像?
【发布时间】:2011-07-20 06:02:19
【问题描述】:

如何在 android 上旋转图像?我将使用图像序列动画。但是我不知道它的java代码。

【问题讨论】:

    标签: android animation


    【解决方案1】:

    试试这个:

    RotateAnimation anim = new RotateAnimation(0, 360,0,0);
    anim.setRepeatCount(0);
    anim.setDuration(3000);
    anim.setFillAfter(true);  
    ImageView.startAnimation(anim);
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多