Event for Handling the Focus of the EditText
Here is the focus listener example. editText.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View view, boolean hasFocus) { if (hasFocus) { Toast.makeText(getApplicationContext(), “Got the focus”, Toast.LENGTH_LONG).show(); } else { Toast.makeText(getApplicationContext(), “Lost the focus”, Toast.LENGTH_LONG).show(); } } });