ZImageView is simple touchable and zoomable light weight imageView library with all gestures detections.
GifImageView is compatible with API LEVEL 19 or above.
- Use jitpack in your build.gradle file to install ZImageView.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.haseebazeem15:ZImageView:1.0'
}
Create this ZImageView element in your layout xml file:
<com.haseebazeem.zimageview.ZImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:id="@+id/z_image"
/>
Inflate ZImageView programmatically using:
ZImageView zImageView;
zImageView = (ZImageView) findViewById(R.id.z_image);
zImageView.setImageResource(YOUR_RESOURCE);
zImageView.setImageBitmap(YOUR_BITMAP);
zImageView.setImageDrawable(YOUR_DRAWABLE);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.