You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've solved this problem by creating my own ChipsInput class that extends ChipsInput. Just override getEditText and setEnabled methods. You can then use your new class in XML files just like the original one. Here is my example :
public class MyChipsInput extends ChipsInput {
private ChipsInputEditText editText;
public MyChipsInput(Context context) {
super(context);
}
public MyChipsInput(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public ChipsInputEditText getEditText() {
editText = new ChipsInputEditText(getContext());
return editText;
}
@Override
public void setEnabled(boolean b){
editText.setEnabled(b);
}
com.pchmn.materialchips.ChipsInput.setEnable(false) does not work android
The text was updated successfully, but these errors were encountered: