Search code examples
androidandroid-softkeyboardandroid-keypad

How to hide the soft keyboard on EditText


I want to hide soft keyboard on EditText even on 'click' also. I mean to say there should not be visible soft keyboard in my activity, because I am having own keyboard to enter data. Please help me... Thanks...


Solution

  •  editText_input_field.setOnTouchListener(otl);
    
     private OnTouchListener otl = new OnTouchListener() {
     public boolean onTouch (View v, MotionEvent event) {
            return true; // the listener has consumed the event
    }
    };
    

    source : how to block virtual keyboard while clicking on edittext in android?