TextInputLayout's errorview is not removed when removing error message

前端 未结 2 1143
青春惊慌失措
青春惊慌失措 2021-01-17 10:24

I have a vertical linear layout with some input fields. Using TextInputLayout I get a nice flow with labels and built-in error messages. My problem is when I add and remove

2条回答
  •  孤城傲影
    2021-01-17 11:11

    For me, below code is working fine.

    @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {
            if(mobileNoInputLayout.isErrorEnabled()){
                mobileNoInputLayout.setErrorEnabled(false);
            }
        }
    

提交回复
热议问题