Button按钮释放时的事件
///释放按钮时产生的事件 this.btn_voice_upload.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (event.getAction()== MotionEvent.ACTION_UP)//判断按钮释放被释放 { Toast.makeText(VoiceUploadingActivity.this, "你好啊", Toast.LENGTH_SHORT).show(); } return false; } });