Search in sources :

Example 1 with ImageViewerOverlayView

use of vision.genesis.clientapp.ui.ImageViewerOverlayView in project android-client by GenesisVision.

the class CreatePostActivity method showImageViewer.

@Override
public void showImageViewer(ImageView imageView, int position, List<NewPostImage> images) {
    ImageViewerOverlayView overlayView = new ImageViewerOverlayView(this);
    overlayView.setImagesCount(images.size());
    StfalconImageViewer imageViewer = new StfalconImageViewer.Builder<>(this, images, (loadingImageView, image) -> Glide.with(this).load(ImageUtils.getImageUriById(image.getImage())).into(loadingImageView)).withStartPosition(position).withHiddenStatusBar(false).withTransitionFrom(imageView).withOverlayView(overlayView).withImageChangeListener(overlayView).show();
    overlayView.setImageViewer(imageViewer);
}
Also used : StfalconImageViewer(com.stfalcon.imageviewer.StfalconImageViewer) ImageViewerOverlayView(vision.genesis.clientapp.ui.ImageViewerOverlayView)

Example 2 with ImageViewerOverlayView

use of vision.genesis.clientapp.ui.ImageViewerOverlayView in project android-client by GenesisVision.

the class PostDetailsActivity method showImageViewer.

@Override
public void showImageViewer(ImageView imageView, int position, List<NewPostImage> images) {
    ImageViewerOverlayView overlayView = new ImageViewerOverlayView(this);
    overlayView.setImagesCount(images.size());
    StfalconImageViewer imageViewer = new StfalconImageViewer.Builder<>(this, images, (loadingImageView, image) -> Glide.with(this).load(ImageUtils.getImageUriById(image.getImage())).into(loadingImageView)).withStartPosition(position).withHiddenStatusBar(false).withTransitionFrom(imageView).withOverlayView(overlayView).withImageChangeListener(overlayView).show();
    overlayView.setImageViewer(imageViewer);
}
Also used : StfalconImageViewer(com.stfalcon.imageviewer.StfalconImageViewer) ImageViewerOverlayView(vision.genesis.clientapp.ui.ImageViewerOverlayView)

Aggregations

StfalconImageViewer (com.stfalcon.imageviewer.StfalconImageViewer)2 ImageViewerOverlayView (vision.genesis.clientapp.ui.ImageViewerOverlayView)2