상속: Java.Lang.Object, IPhotoViewDroid, Android.Views.View.IOnTouchListener, IOnGestureListener, Android.Views.ViewTreeObserver.IOnGlobalLayoutListener
 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;
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
        public PhotoViewDroid(Context context)
            : base(context, null, 0)
        {
            base.SetScaleType(ScaleType.Matrix);
            mAttacher = new PhotoViewDroidAttacher(this);

            if (null != mPendingScaleType) {
                SetScaleType(mPendingScaleType);
                mPendingScaleType = null;
            }
        }
예제 #4
0
        public PhotoViewDroid(Context context) : base(context, null, 0)
        {
            base.SetScaleType(ScaleType.Matrix);
            mAttacher = new PhotoViewDroidAttacher(this);

            if (null != mPendingScaleType)
            {
                SetScaleType(mPendingScaleType);
                mPendingScaleType = null;
            }
        }
예제 #5
0
        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;
            }
        }
예제 #6
0
        // ---------------------------------------------------------

        #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);
        }
예제 #7
0
 public void SetPhotoViewAttacher(PhotoViewDroidAttacher newPhotoViewAttacher)
 {
     this.photoViewAttacher = newPhotoViewAttacher;
 }
예제 #8
0
 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 void SetPhotoViewAttacher(PhotoViewDroidAttacher newPhotoViewAttacher)
 {
     this.photoViewAttacher = newPhotoViewAttacher;
 }
 public MSimpleOnGestureListener(PhotoViewDroidAttacher photoViewAttacher)
 {
     this.photoViewAttacher = photoViewAttacher;
 }
예제 #14
0
 public void SetOnViewTapListener(PhotoViewDroidAttacher.IOnViewTapListener listener)
 {
     mAttacher.SetOnViewTapListener(listener);
 }
예제 #15
0
 public void SetOnMatrixChangeListener(PhotoViewDroidAttacher.IOnMatrixChangedListener listener)
 {
     mAttacher.SetOnMatrixChangeListener(listener);
 }
 public FlingRunnable(PhotoViewDroidAttacher photoViewAttacher, Context context)
 {
     mScroller = ScrollerProxy.GetScroller(context);
     this.photoViewAttacher = photoViewAttacher;
 }
 public DefaultOnDoubleTapListener(PhotoViewDroidAttacher photoViewAttacher)
 {
     SetPhotoViewAttacher(photoViewAttacher);
 }