Ejemplo n.º 1
0
 @Override
 public boolean onTouchEvent(MotionEvent ev) {
   Log.i("TAG", "18");
   int action = ev.getAction();
   switch (action) {
     case MotionEvent.ACTION_DOWN:
     case MotionEvent.ACTION_MOVE:
       Log.i("TAG", "ACTION_MOVE  8");
       mIonSlidingButtonListener.onDownOrMove(this);
       break;
     case MotionEvent.ACTION_UP:
     case MotionEvent.ACTION_CANCEL:
       Log.i("TAG", "ACTION_CANCEL  10");
       changeScrollx();
       return true;
     default:
       break;
   }
   return super.onTouchEvent(ev);
 }