UGImageViewer is full image view library with built-in zooming effects to each image with image slider.
UGImageViewer allows you to display your images in full sliding view with zooming effects. It supports HTTPS image loading as well as local image URIs.
UGImageViewer is compatible with API LEVEL 19 or above.
- Use jitpack in your build.gradle file to install UGImageViewer.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.haseebazeem15:UGImageViewer:1.0'
}
Create this GifImageView element in your layout xml file:
// Create Image Path/URI Array List
ArrayList<String> arrayList = new ArrayList<>();
arrayList.add("IMAGE_PATH_1");
arrayList.add("IMAGE_PATH_2");
// Call builder to display ImageViewer
UGImageViewer.Builder(this, arrayList).show();
UGImageViewer Builders:
// Using ArrayList<String>
UGImageViewer.Builder(this, arrayList).show();
// Using ArrayList<Uri>
UGImageViewer.Builder(this, arrayList).show();
// or using image postition in adapter
UGImageViewer.Builder(this, arrayList, position).show();
UGImageViewer is using my own ZImageView Library (for zooming effect) and Picasso (for Image Loading)
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.