Description
I am developing one app in which I have registration page. Inside registration page, I am doing registration by getting user\'s full nam
Try this, check if start == 0, it will not allow user to add spaces before name
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { if(start == 0 && s.toString().contains(" ")){ user_name.setText(""); } }