@Override public boolean onTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) first = (int) event.getY(); if (event.getAction() == MotionEvent.ACTION_MOVE) mView.ypos = first - (int) event.getY(); Log.v("Move Amount", Integer.toString(mView.ypos)); return super.onTouchEvent(event); }
@Override protected void onResume() { super.onResume(); mView.onResume(); }
@Override protected void onPause() { super.onPause(); mView.onPause(); }