public void OnFling(float startX, float startY, float velocityX, float velocityY)
        {
            if (DEBUG)
            {
                Log.Info(LOG_TAG, "onFling. sX: " + startX + " sY: " + startY + " Vx: " + velocityX + " Vy: " + velocityY);
            }

            var imageView = GetImageView();

            _currentFlingRunnable = new FlingRunnable(this, imageView.Context);
            _currentFlingRunnable.Fling(getImageViewWidth(imageView), getImageViewHeight(imageView), (int)velocityX, (int)velocityY);

            imageView.Post(_currentFlingRunnable);
        }
Ejemplo n.º 2
0
        public void OnFling(float startX, float startY, float velocityX, float velocityY)
        {
            if (DEBUG)
            {
                LogManager.GetLogger().d(
                    LOG_TAG,
                    "onFling. sX: " + startX + " sY: " + startY + " Vx: "
                    + velocityX + " Vy: " + velocityY);
            }
            ImageView imageView = GetImageView();

            mCurrentFlingRunnable = new FlingRunnable(this, imageView.Context);
            mCurrentFlingRunnable.Fling(GetImageViewWidth(imageView),
                                        GetImageViewHeight(imageView), (int)velocityX, (int)velocityY);
            imageView.Post(mCurrentFlingRunnable);
        }
 public void OnFling(float startX, float startY, float velocityX, float velocityY)
 {
     if (DEBUG) {
         LogManager.GetLogger().d(
             LOG_TAG,
             "onFling. sX: " + startX + " sY: " + startY + " Vx: "
             + velocityX + " Vy: " + velocityY);
     }
     ImageView imageView = GetImageView();
     mCurrentFlingRunnable = new FlingRunnable(this,imageView.Context);
     mCurrentFlingRunnable.Fling(GetImageViewWidth(imageView),
         GetImageViewHeight(imageView), (int) velocityX, (int) velocityY);
     imageView.Post(mCurrentFlingRunnable);
 }