Code example for ImageButton

Methods: performClick

0
 
    private OnEditorActionListener mEditorActionListener = new OnEditorActionListener() {
        @Override 
        public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { 
            if (actionId == EditorInfo.IME_ACTION_SEND) { 
                mSendButton.performClick(); 
                return true; 
            } 
 
            return false; 
        } 
    }; 
 
    private OnClickListener mSendButtonClickListener = new OnClickListener() {
        @Override 
        public void onClick(View v) { 
            if (mEditText != null) { 
                OnSendComposeText(mEditText.getText()); 
                mEditText.setText(""); 
                getInputManager().restartInput(mEditText); 
            }