Preview Image Collection
Preview Image Collection is a library to draw a collage with a number of images like facebook preview album.
Install
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.AgnaldoNP:PreviewImageCollection:1.0'
}
Usage
Sample of usage
Options
Property | Value type | Default |
---|---|---|
backgroundColor | color | #FFFFFF |
baseRowHeight | dimension | 150dp |
imageMargin | dimension | 1dp |
pinchToZoom | boolean | true |
showExternalBorderMargins | boolean | true |
maxImagePerRow | integer | 3 |
maxRows | integer | 3 |