Image Preview

Additional

Language
Java
Version
0.0.6 (Sep 20, 2018)
Created
Apr 20, 2018
Updated
Aug 21, 2023
Owner
Himangi Patel (himangipatel)
Contributor
Himangi Patel (himangipatel)
1
Activity
Badge
Generate
Download
Source code

ImagesPreview

Developed by

Himangi Patel

Features

Easy to Use.
Gallery view
Share and Save functionality

Installation

Add repository url and dependency in application module gradle file:

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

dependencies {
      compile 'com.github.himangipatel:ImagesPreview:0.0.5'
}

Usage

1. Start by creating an instance of FilePickUtils and LifeCycleCallBackManager.

            final ArrayList<PreviewFile> previewFiles = new ArrayList<>();
      previewFiles.add(new PreviewFile(image path,image description));
      
            Intent intent = new Intent(AppointmentDetailActivity.this, ImagePreviewActivity.class);
            intent.putExtra(ImagePreviewActivity.IMAGE_LIST, previewFiles);
            intent.putExtra(ImagePreviewActivity.CURRENT_ITEM, position);
            startActivity(intent);