• Stars
    star
    1,347
  • Rank 34,876 (Top 0.7 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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://wingjay.com/

GitHub: https://github.com/wingjay

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

Thanks!

More Repositories

1

jianshi

A Full-Stack mobile app, including Android & Server, Simple-Poem 简诗. You can write poem in graceful & traditional Chinese style.
Java
1,865
star
2

android-open-source-project-cracking

Analysis for Popular & Hot Android open-source Applications & Libraries will help you grow into a Senior Android developer. Follow us, do practice in the right and fast way. 通过对流行的优质android开源项目分析、学习、仿写,最终理解,不仅帮你掌握最新的android技术,更能让你理解开源项目的精华之处,这些都是你成为一名高级android developer必不可少的。
GCC Machine Description
1,119
star
3

WJMagicCurveView

Fancy magic curve.
Java
324
star
4

HelloJava

Java basic learning
Java
22
star
5

AutoLifecycle

Make your Java class be aware of Android Lifecycle.
Java
22
star
6

wingjay.github.io

blog for wingjay.
HTML
16
star
7

Lego

A powerful Android library for building complex RecyclerView. Building a list is as simple as playing Lego game. List<Model> =>Lego=> List<View>. 像搭积木一样构建你的RecyclerView列表。
Java
9
star
8

InnoXYZ

This app is used by team members to manage project together.
Java
5
star
9

w2sm

超贴心导航
PHP
4
star
10

resume-latex-chinese-support

resume template complied by XeLaTeX , supporting Chinese.
TeX
2
star
11

Titan

cross-platform network framework, based on Mars
Java
2
star
12

jayAndroid

Learning android
Java
2
star
13

HelloDesignPattern

For Design Pattern practise.
Java
1
star
14

hacker_scripts

My personal hacker scripts (Shell + Python + NodeJS script)
JavaScript
1
star
15

ABot

An AI Bot who can understand natural language, execute your commands. Based on API.AI from Google.
Python
1
star