Пример #1
0
 @Override
 public boolean onTouch(View v, MotionEvent event) {
   if (event.getAction() == MotionEvent.ACTION_DOWN) {
     if (listener != null) {
       listener.startRecoding();
     }
   } else if (event.getAction() == MotionEvent.ACTION_UP) {
     listener.endRecoding();
   }
   return true;
 }