1

onFocusChange of EditText never called

view story
linux-howto

http://stackoverflow.com – I like to detect user's focus on the EditText using IDEditTxt.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { Toast.makeText(getBaseContext(), ((EditText) v).getId() + " has focus - " + hasFocus, Toast.LENGTH_LONG).show(); } }); But when I set the cursor on it, onFocusChange is never get called. When I research, found that EditText xml should have android:focusableInTouchMode="true" android:focusable="true" So I put th (HowTos)