예제 #1
0
  @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);
  }
예제 #2
0
 @Override
 protected void onResume() {
   super.onResume();
   mView.onResume();
 }
예제 #3
0
 @Override
 protected void onPause() {
   super.onPause();
   mView.onPause();
 }