话不多说,直接上代码//实现图片闪烁效果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);}

更多相关文章

  1. Android 震动示例--心跳效果
  2. Android:获取网页源代码
  3. Android软键盘之代码改变软键盘状态
  4. android 用代码设置margin属性,textView加粗
  5. Android动画效果学习
  6. Android调用百度地图API实现――实时定位代码
  7. android获取当前Canvas位图代码
  8. Android 代码获取手机ip地址(个人笔记)
  9. JavaGG android实现uc 和墨迹天气那样的左右拖动效果

随机推荐

  1. 3-27(string)
  2. 结构性面板VAR是什么? 如何实现PSVAR呢?怎
  3. 审稿: 协变量何时重要? 哪个重要, 有多重
  4. 机器学习中的隐私保护
  5. 计算系统基础(四)
  6. 1. 实例演示box-sizing属性; 2. 实例演示
  7. 一款组学数据分析软件:GeneSpring GX
  8. 增强子的重编程促进胰腺癌的转移
  9. Meta分析数据处理流程
  10. R语言实战——线性回归分析和相关矩阵可