- private void setFlickerAnimation(ImageView iv_chat_head) {
- final Animation animation = new AlphaAnimation(1, 0); // Change alpha from fully visible to invisible
- animation.setDuration(500); // duration - half a second
- animation.setInterpolator(new LinearInterpolator()); // do not alter animation rate
- animation.setRepeatCount(Animation.INFINITE); // Repeat animation infinitely
- animation.setRepeatMode(Animation.REVERSE); //
- iv_chat_head.setAnimation(animation);
- }
android动画效果_图片闪烁
最新推荐文章于 2024-05-11 02:48:35 发布