I am trying to capture when the edittext field is disabled, which is disabled. (I just want to change it, I donβt want the text to be inserted into it). I assigned onClickListener, but it is not called. Any suggestions? Is there any other event that I can listen to?
final EditText field = column.get(i); field.setEnabled(false); field.setClickable(true); field.setFocusable(false); field.setFocusableInTouchMode(false); field.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ((EditText)v).setText("a"); } });
Thanks!
source share