Kotlin Image Viewer Zoom In-Out (KIVZIO)

Simple and customizable full screen image viewer with support for shared image transitions, "pinch to zoom" and "swipe to close" gestures. Compatible with all the most popular image processing libraries like Picasso, Glided etc. Based on PhotoView by chrisbanes.

Who we are

Need iOS and Android apps, MVP development, or prototyping? Contact us at  info@stfalcon.com . We have been developing software since 2009, and we are known as experts in this field. Check out our portfolio and see more libraries from stfalcon-studio.

Install

Download via Gradle:

Add this to the project build.gradle file:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

And then add the dependency to the modulebuild.gradle file:

implementation 'com.github.stfalcon-studio:StfalconImageViewer:v1.0.1'

Use

All you need to show the viewer is to pass in a context, list, or array of your image objects and an implementation of ImageLoader and call the show() method:

StfalconImageViewer.Builder<Image>(context, images) { view, image ->
    Picasso.get().load(image.url).into(view)
}.show()

Usage In My Case

If in the example Picasso is used as the remote image loader, while I use Glide, besides that the data model that I use is also different, for example:

StfalconImageViewer.Builder<String>(this, listOf(item.imageSelfie)) { view, url ->
      Glide.with(this).load(url).into(view)
}.show()

Source

https://github.com/stfalcon-studio/StfalconImageViewer


Post a Comment

Previous Next

نموذج الاتصال