1、先创建动画层,有三张图片
2、使用:
View viewanim = view.findViewById(R.id.id_recorder_anim); viewanim.setBackgroundResource(R.drawable.play); AnimationDrawable drawable = (AnimationDrawable) viewanim.getBackground(); drawable.start();
3、停止:
if (drawable.isRunning()) {
drawable.stop();
}
上一篇:mysql 中如何表示不等于符号
下一篇:SQL语句怎么用