Android kit for cat placeholders
With Density-independent Pixels:
CatKit.with(context).dp(200, 200).into(targetImageView);
With Pixels:
CatKit.with(context).px(500, 300).into(targetImageView);
Memory Policy:
CatKit.with(context).dp(200, 200).memoryPolicy(MemoryPolicy.NO_CACHE).into(targetImageView);
If you already use Picasso for image loading you can override the downloader to provide cat images throughout your existing app
Picasso picasso = new Picasso.Builder(this).downloader(new CatKitDownloader(this)).build();
picasso.load("http://dummyurl.com") //this url will be ignored by CatKitDownloader
.into(targetImageView);
Add the dependency to your build.gradle
dependencies {
compile 'com.cesarferreira.catkit:catkit:0.3.0'
}
- Fork it ( https://github.com/cesarferreira/catkit/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request