code: public T imeAction(int lable, final View associateView) {
          if (view instanceof EditText) {
              ((EditText)view).setImeActionLabel(context.getString(lable),view.getId());
              ((EditText)view).setOnEditorActionListener(new TextView.OnEditorActionListener() {
                  @Override
                  public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {
                      if (id == view.getId() || id == EditorInfo.IME_NULL) {
                          associateView.performClick();
                          return true;
                      }
                      return false;
                  }
              });
          }
          return self();
      }
docs: Change the custom IME action associated with the text view. click the lable will trigger the associateView's onClick method
  @param lable
  @param associateView