Code example for View.OnTouchListener

Methods: onTouch

0
			lp.y = (y < (oh - vh) >> 1) ? y * h / oh : (y * h + (h - oh) * vh) / oh;
			Log.d("ORC", String.format("(%d, %d), (%d, %d), (%d, %d)", lp.x, lp.y, vw, vh, w, h));
			 
			this.orientation = orientation;
			this.updateViewPosition();
			this.onTouchListener.onTouch(this.view, MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0));
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE