I want to be able to detect when an edittext isn't clicked, so I can replace it with a textview. I tried
et.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (!v.hasFocus()){
Toast.makeText(getApplicationContext(), "LOST FOCUS", Toast.LENGTH_SHORT).show();
}
}
});
but the Toast message wouldn't get called.