Android(安卓)实现图片闪烁效果
16lz
2022-06-16
话不多说,直接上代码//实现图片闪烁效果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(安卓)震动示例--心跳效果
- Android(安卓)欢迎界面淡出动画效果(Animation)
- Android动画效果学习
- 【Android】【基础】获取屏幕宽高
- android手势翻页效果【转】
- Android设置透明、半透明等效果
- Android动画效果 translate、scale、alpha、rotate
- android实现图片平铺效果&WebView多点触控实现缩放
- android 硬件加速后webview闪烁问题