Skip to content

softpal/ImagesPreview

 
 

Repository files navigation

ImagesPreview

Developed by

Himangi Patel

Customized by

Softpal

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 {
      implementation 'com.github.softpal:ImagesPreview:1.3'
}

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);
            intent.putExtra(ImagePreviewActivity.SHOULD_CACHE, true);
            startActivity(intent);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%