All Projects → nos-digital → imagin

nos-digital / imagin

Licence: MIT License
An attachable image zooming library for the Android ImageView.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to imagin

Kenburnsview
Android ImageViews animated by Ken Burns Effect
Stars: ✭ 2,685 (+15694.12%)
Mutual labels:  imageview
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+470.59%)
Mutual labels:  imageview
ImageView
Qt自定义图片显示控件-支持加载本地图片和网络图片,并支持缓存
Stars: ✭ 14 (-17.65%)
Mutual labels:  imageview
ProgressableImageView
Change your users progress capability with ProgressableImageView
Stars: ✭ 86 (+405.88%)
Mutual labels:  imageview
FaceAware-Android
this helps to auto zoom for face on ImageView
Stars: ✭ 46 (+170.59%)
Mutual labels:  imageview
NoiseView
Android library written in kotlin that add a noise effect to image.
Stars: ✭ 47 (+176.47%)
Mutual labels:  imageview
Parallaxrecyclerview
Parallax effect on every item of your RecyclerView.
Stars: ✭ 237 (+1294.12%)
Mutual labels:  imageview
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (+170.59%)
Mutual labels:  imageview
CombineView
View that combines multiple images
Stars: ✭ 27 (+58.82%)
Mutual labels:  imageview
image-zoom-view
Imageview zoom library for android
Stars: ✭ 52 (+205.88%)
Mutual labels:  imageview
SquareImageView
SquareImageView is a simple wrapper library for Android ImageView
Stars: ✭ 28 (+64.71%)
Mutual labels:  imageview
aspect-ratio-imageview
A simple imageview which scales the width or height aspect with the given ratio
Stars: ✭ 72 (+323.53%)
Mutual labels:  imageview
Parrot
A simple way to handle remote image in Kotlin.
Stars: ✭ 21 (+23.53%)
Mutual labels:  imageview
Glazy Viewpager
Android ViewPager template with cool animation.
Stars: ✭ 250 (+1370.59%)
Mutual labels:  imageview
StickerView
仿微博贴纸效果实现
Stars: ✭ 102 (+500%)
Mutual labels:  imageview
Music Cover View
Subclass of ImageView that 'morphs' into a circle shape and can rotates. Useful to be used as album cover in Music apps. 📀🎶
Stars: ✭ 239 (+1305.88%)
Mutual labels:  imageview
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (+652.94%)
Mutual labels:  imageview
TNImageView-Android
Android Library for making scale-able and rotatable image views or giving this power to your own image view. This repo has been depreciated.
Stars: ✭ 18 (+5.88%)
Mutual labels:  imageview
easy-animated-vector-drawable
A library that helps using Animated Vector Drawables.
Stars: ✭ 40 (+135.29%)
Mutual labels:  imageview
Leon
Leon is swift library to show and slid images with more gesture
Stars: ✭ 16 (-5.88%)
Mutual labels:  imageview

Imagin

Imagin is an Android library, written in Kotlin. It attaches to an ImageView and allows you to add 'pinch to zoom', 'swipe to close', 'double tap to zoom' and dragging functionality. Because it attaches to a regular ImageView, it allows you to use all existing functionality of the ImageView or extend the ImageView to add extra functionality. Keep in mind that Imagin sets an OnTouchListener on the ImageView.

This library is currently supported on Android 5.1 Lollipop (22) and higher.

Usage

  1. Add the Imagin library to your build.gradle file:
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.nos-digital:imagin:${imagin.version}'
}
  1. Usage in your project:

    Load an image into an ImageView like usual.

Imagin.with(imageWrapper, imageView)
    // enable double tap to zoom functionality
    .enableDoubleTapToZoom()
    // enable pinch to zoom functionality
    .enablePinchToZoom()
    // add an event listener when the user does a single tap
    .enableSingleTap(object : SingleTapHandler.OnSingleTapListener {
        override fun onSingleTap() {
            Toast.makeText(imageView.context, picture.name, Toast.LENGTH_SHORT).show()
        }
    })
    // this allows us to do an action when the user swipes the ImageView vertically and/or horizontally
    .enableScroll(
        allowScrollOutOfBoundsHorizontally = false,
        allowScrollOutOfBoundsVertically = true,
        scrollDistanceToCloseInPx = distanceToClose
    ) {
        onSwipedToCloseListener?.onSwipeToClose()
    }

Licence

Imagin is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].