예제 #1
0
 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 FlingRunnable(PhotoViewDroidAttacher photoViewAttacher, Context context)
 {
     mScroller = ScrollerProxy.GetScroller(context);
     this.photoViewAttacher = photoViewAttacher;
 }
예제 #5
0
 public MSimpleOnGestureListener(PhotoViewDroidAttacher photoViewAttacher)
 {
     this.photoViewAttacher = photoViewAttacher;
 }
 public void SetPhotoViewAttacher(PhotoViewDroidAttacher newPhotoViewAttacher)
 {
     this.photoViewAttacher = newPhotoViewAttacher;
 }
 public DefaultOnDoubleTapListener(PhotoViewDroidAttacher photoViewAttacher)
 {
     SetPhotoViewAttacher(photoViewAttacher);
 }