haseebazeem15 / UGImageViewer

UGImageViewer is full image view library with built-in zooming effects to each image with image slider.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UGImageViewer

UGImageViewer is full image view library with built-in zooming effects to each image with image slider.

Description

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.

Demo

Minimum API LEVEL

UGImageViewer is compatible with API LEVEL 19 or above.

Installation

  1. Use jitpack in your build.gradle file to install UGImageViewer.
allprojects {
 repositories {
   maven { url 'https://jitpack.io' }
 }
}

Gradle

dependencies {
   implementation 'com.github.haseebazeem15:UGImageViewer:1.0'
}

Usage

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();

Libraries Used

UGImageViewer is using my own ZImageView Library (for zooming effect) and Picasso (for Image Loading)

Contributing

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.

License

MIT

About

UGImageViewer is full image view library with built-in zooming effects to each image with image slider.

License:MIT License


Languages

Language:Java 100.0%