BlurImageView, you can load your image progressively like Medium does.First show user a blurry image, At the same time, load the real image, once loaded, replace the blurry one automatically

Min SDK   15
Latest Commit   2017-10-08 13:44:39
License   Apache-2.0

Github   https://github.com/wingjay/BlurImageView

         

标签

使用APP客户端扫描二维码运行Demo



扫描关注公众号,每天推送分享!

...

wingjay
Alibaba, Inc.
Shanghai, China

http://wingjay.com
Full-Stack Engineer @ Alibaba

         

类似的还有....
Diagonalify Diagonal cut view
AndroidScrollingImageView An Android view for displaying repeated continuous side scrolling images. This can be used to create a parallax animation effect.
FrescoImageView FrescoImageView是一种Android平台的图像控件,可以异步加载网络图片、项目资源和本地图片,并且支持双指缩放、图片的基本处理以及Fresco的所有特性。
README

README.md

Android Arsenal

BlurImageView

BlurImageView For Android, you can load your image progressively like Medium.

How it works?

  1. First it will show user a blurry image;
  2. At the same time, it starts to load the real image;
  3. once loaded, replace the blurry one automatically.

Playable apk

You can Download sample apk and play on your phone. Try it!

Why I do this?

This lib is inspired by Medium and users love this way of loading pics, Because a beautiful Blurry pic is always better than a blank area or an ugly thumbnail.

How to get it?

Simply add the dependency

dependencies {
	compile 'com.wingjay:blurimageviewlib:2.0.1'
}

How to use it?

    BlurImageView blurImageView = (BlurImageView) findViewById(R.id.XXX);
    blurImageView.setBlurImageByUrl(blurImageUrl);

This will load and blur a image.

  BlurImageView fullBlurImageView = (BlurImageView) findViewById(R.id.XXX)
  fullBlurImageView.setFullImageByUrl(blurImageUrl, normalImageUrl);

This will load two images progressively.

  blurImageView.setBlurFactor(blurFactor);

This can set the factor of blurry, default 8 - 10.

  blurImageView.setFailDrawable(Drawable failDrawable);
  blurImageView.setDefaultDrawable(Drawable defaultDrawable);

Configure your own drawable for loading failure & default. Use null to remove them.

Related resource

Thanks for the algorithms: Stack Blur: http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html

Reach me - wingjay

Weibo: http://weibo.com/u/1625892654

Blog: http://www.jianshu.com/users/da333fd63fe5/latest_articles

GitHub: https://github.com/wingjay

Feel free to give me advices by <mailto:yinjiesh AT 126 DOT com>

Thanks!