当前位置: 主页 > 开源代码 >

ImageView使用效果

分享

介绍:

ImageView使用效果,来自https://github.com/dinuscxj/LoadingDrawable

 ImageView.setImageDrawable(new LoadingDrawable(new SwapLoadingRenderer(Context)));
 ImageView.setImageDrawable(new LoadingDrawable(new GearLoadingRenderer(Context)));
 ImageView.setImageDrawable(new LoadingDrawable(new WhorlLoadingRenderer(Context)));
 ImageView.setImageDrawable(new LoadingDrawable(new LevelLoadingRenderer(Context)));
 ImageView.setImageDrawable(new LoadingDrawable(new MaterialLoadingRenderer(Context)));
 ImageView.setImageDrawable(new LoadingDrawable(new CollisionLoadingRenderer(Context)));

Used with View

 View.setBackground(new LoadingDrawable(new SwapLoadingRenderer(Context)));
 View.setBackground(new LoadingDrawable(new GearLoadingRenderer(Context)));
 View.setBackground(new LoadingDrawable(new WhorlLoadingRenderer(Context)));
 View.setBackground(new LoadingDrawable(new LevelLoadingRenderer(Context)));
 View.setBackground(new LoadingDrawable(new MaterialLoadingRenderer(Context)));
 View.setBackground(new LoadingDrawable(new CollisionLoadingRenderer(Context)));

运行效果: