예제 #1
0
 @Override
 public boolean onInterceptTouchEvent(final MotionEvent ev) {
   if (ev.getAction() == MotionEvent.ACTION_DOWN) {
     parent.animateClose();
   }
   return super.onInterceptTouchEvent(ev);
 }
예제 #2
0
 public void toggle() {
   if (isOpened()) {
     animateOpen();
   } else {
     animateClose();
   }
 }