pchmn / MaterialChipsInput

Implementation of Material Design Chips component for Android
Apache License 2.0
2.63k stars 382 forks source link

setOnFocusChangeListener not triggering #119

Open shylendramadda opened 5 years ago

shylendramadda commented 5 years ago

Here I have three input fields, one is To list and second contains Cc and Bcc like Gmail When I am leaving from To to Cc I want to get the listener.

I tried with this code:

chips_input_to.setOnFocusChangeListener((view, hasFocus) -> {
            if (!hasFocus) {
                if (!TextUtils.isEmpty(enteredEmail)) {
                    enteredEmail = enteredEmail.toLowerCase().trim();
                    addEmailToChipView(enteredEmail, "to");
                }
            }
        });

But it still not hitting this method. Any suggestions?