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);
}
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);
}
Aggregations