Disabling chipsInput
Good Day! I'd like to disable the chipsInput. Is there any method to do that? Thank you in advance!
I would like to know this too
i agree, is there anyway to do this? i cannot find how to do it.
I want the same! is it possible? I can't find a way.
You can create your own ChipsInput class, and use it in your layout.xml: ` public class MyChipsInput extends ChipsInput {
public MyChipsInput(Context context) {
super(context);
}
public MyChipsInput(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public void onTextChanged(CharSequence text) {}
@Override
public ChipsInputEditText getEditText() {
ChipsInputEditText editText = new ChipsInputEditText(getContext());
editText.setHintTextColor(getContext().getResources().getColor(R.color.transparent));
editText.clearFocus();
editText.setFocusable(false);
editText.setFocusableInTouchMode(false);
return editText;
}
} `
setFocusable doesn't work.
You can create your own ChipsInput class, and use it in your layout.xml: ` public class MyChipsInput extends ChipsInput {
public MyChipsInput(Context context) { super(context); } public MyChipsInput(Context context, AttributeSet attrs) { super(context, attrs); } @Override public void onTextChanged(CharSequence text) {} @Override public ChipsInputEditText getEditText() { ChipsInputEditText editText = new ChipsInputEditText(getContext()); editText.setHintTextColor(getContext().getResources().getColor(R.color.transparent)); editText.clearFocus(); editText.setFocusable(false); editText.setFocusableInTouchMode(false); return editText; }} `
thank you man, its worked for me