android – 如何为ImageView进行振动动画

前端之家收集整理的这篇文章主要介绍了android – 如何为ImageView进行振动动画前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我不知道这个动画.

我怎么能通过xml这样做?还是其他解决方案?

<?xml version="1.0" encoding="utf-8"?> 
<set xmlns:android="http://schemas.android.com/apk/res/android" 
    android:interpolator="@android:anim/accelerate_decelerate_interpolator" 
    android:fillAfter="true"> 
    ......
</set>

感谢你的舵

解决方法

您可以在下面的链接查看振动动画的工作原理?

1)Shaking animation in android
2)Vibration animation

我希望它能帮助你.

谢谢

原文链接:https://www.f2er.com/android/313444.html

猜你在找的Android相关文章