PlayPauseDrawable
介绍:
用纯代码实现播放、暂停切换动画的Drawable ,不需要任何图片资源
运行效果:
使用说明:
ImageView imageView = (ImageView)findViewById(R.id.imageView);
final PlayPauseDrawable mPlayPauseDrawable = new PlayPauseDrawable(60, 0XFFE91E63, 0XFFffffff,300);
imageView.setImageDrawable(mPlayPauseDrawable);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mPlayPauseDrawable.toggle();
}
});
已下载
0