@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;
 }
 /**
  * 是否显示输入法
  *
  * @param show
  */
 public void showIM(boolean show) {
   InputMethodManager im =
       (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
   if (show) {
     //            if (!mEdittext.isFocused()) {
     //                mEdittext.requestFocus();
     //            }
     //            im.showSoftInput(mEdittext, InputMethodManager.SHOW_IMPLICIT);
     SoftkeyboardUtil.showSoftKeyBoard(getContext(), mEdittext);
   } else {
     if (listener != null) {
       listener.preFace(true);
     }
     //            im.hideSoftInputFromWindow(mRootframe.getApplicationWindowToken(),
     //                    InputMethodManager.HIDE_NOT_ALWAYS);
     SoftkeyboardUtil.hideSoftKeyBoard(getContext(), mEdittext);
   }
 }