CatKit
Android kit for cat placeholders
Usage
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);
Install
Step 1: Add the JitPack repository to your main build.gradle
allprojects {
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
}
Step 2: Add the dependency in the form
dependencies {
compile 'com.github.cesarferreira:catkit:0.3.0'
}
Contributing
- 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