public void Show(PhotoBrowserModel photoBrowser) { ImageViewer.Builder builder = new ImageViewer.Builder(Platform.Context, photoBrowser.Photos.Select(x => x.Path).ToArray()); ImageOverlayView overlay = new ImageOverlayView(Platform.Context, photoBrowser); builder.SetOverlayView(overlay); builder.SetImageChangeListener(overlay); builder.SetStartPosition(photoBrowser.StartIndex); _imageViewer = builder.Show(); }
public void Show(PhotoBrowser photoBrowser) { ImageViewer.Builder builder = new ImageViewer.Builder(Platform.Context, photoBrowser.Photos.Select(x => x.URL).ToArray()); ImageOverlayView overlay = new ImageOverlayView(Platform.Context, photoBrowser); builder.SetBackgroundColor(ColorExtensions.ToAndroid(photoBrowser.BackgroundColor)); builder.SetOverlayView(overlay); builder.SetContainerPaddingPx(photoBrowser.Android_ContainerPaddingPx); builder.SetImageChangeListener(overlay); builder.SetStartPosition(photoBrowser.StartIndex); _imageViewer = builder.Show(); }