public AnimatedZoomRunnable(PhotoViewDroidAttacher photoViewAttacher, float currentZoom, float targetZoom, float focalX, float focalY) { this.photoViewAttacher = photoViewAttacher; mFocalX = focalX; mFocalY = focalY; mStartTime = Java.Lang.JavaSystem.CurrentTimeMillis(); mZoomStart = currentZoom; mZoomEnd = targetZoom; }
public PhotoViewDroid(Context context, IAttributeSet attr, int defStyle) : base(context, attr, defStyle) { base.SetScaleType(ScaleType.Matrix); mAttacher = new PhotoViewDroidAttacher(this); if (null != mPendingScaleType) { SetScaleType(mPendingScaleType); mPendingScaleType = null; } }
public PhotoViewDroid(Context context) : base(context, null, 0) { base.SetScaleType(ScaleType.Matrix); mAttacher = new PhotoViewDroidAttacher(this); if (null != mPendingScaleType) { SetScaleType(mPendingScaleType); mPendingScaleType = null; } }
// --------------------------------------------------------- #region Private Methods private async Task InitializeRenderer(PhotoView view, string filePath) { // Create the Photo View _photoView = new PhotoViewDroid(this.Context); _photoViewAttacher = _photoView.GetPhotoViewDroidAttacher(); _photoViewAttacher.SetOnViewTapListener(this); // Prepare the image var options = await GetBitmapOptionsOfImageAsync(filePath); var bitmapToDisplay = await LoadScaledDownBitmapForDisplayAsync(Resources, filePath, options, MAX_IMAGE_SIZE_WIDTH, MAX_IMAGE_SIZE_HEIGHT); // Set the scroll view as the native control this.SetNativeControl(_photoView); // Set the image this.Control.SetImageBitmap(bitmapToDisplay); }
public void SetPhotoViewAttacher(PhotoViewDroidAttacher newPhotoViewAttacher) { this.photoViewAttacher = newPhotoViewAttacher; }
public DefaultOnDoubleTapListener(PhotoViewDroidAttacher photoViewAttacher) { SetPhotoViewAttacher(photoViewAttacher); }
public FlingRunnable(PhotoViewDroidAttacher photoViewAttacher,Context context) { mScroller = ScrollerProxy.GetScroller(context); this.photoViewAttacher=photoViewAttacher; }
public AnimatedZoomRunnable(PhotoViewDroidAttacher photoViewAttacher, float currentZoom, float targetZoom, float focalX, float focalY) { this.photoViewAttacher=photoViewAttacher; mFocalX = focalX; mFocalY = focalY; mStartTime =Java.Lang.JavaSystem.CurrentTimeMillis(); mZoomStart = currentZoom; mZoomEnd = targetZoom; }
public MSimpleOnGestureListener(PhotoViewDroidAttacher photoViewAttacher) { this.photoViewAttacher=photoViewAttacher; }
public MSimpleOnGestureListener(PhotoViewDroidAttacher photoViewAttacher) { this.photoViewAttacher = photoViewAttacher; }
public void SetOnViewTapListener(PhotoViewDroidAttacher.IOnViewTapListener listener) { mAttacher.SetOnViewTapListener(listener); }
public void SetOnMatrixChangeListener(PhotoViewDroidAttacher.IOnMatrixChangedListener listener) { mAttacher.SetOnMatrixChangeListener(listener); }
public FlingRunnable(PhotoViewDroidAttacher photoViewAttacher, Context context) { mScroller = ScrollerProxy.GetScroller(context); this.photoViewAttacher = photoViewAttacher; }