Needing to double click EditText for click listener to respond Needing to double click EditText for click listener to respond android android

Needing to double click EditText for click listener to respond


Add android:focusableInTouchMode="false" in EditText xml then EditText will accept single click


Try setting OnTouchListener rather than OnClickListener


use this, it will fire very first.

editText.setOnTouchListener(new OnTouchListener() {         @Override         public boolean onTouch(View v, MotionEvent event) {            if(MotionEvent.ACTION_UP == event.getAction())                // Do whatever you want to do man, but don't trouble your mother            return false;         } });