GithubHelp home page GithubHelp logo

olachan / blurimageview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wingjay/blurimageview

0.0 1.0 0.0 30.33 MB

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

License: Apache License 2.0

Java 100.00%

blurimageview's Introduction

Android Arsenal

Release JitPack

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:1.1.0'
}

###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.

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

###Reach me - wingjay

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

You can get information about me and reach me in my github page: https://github.com/wingjay

Feel free to give me advices by mailto:[email protected]

######Thanks!

blurimageview's People

Contributors

wingjay avatar

Watchers

Ola avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.