I have set EditText inputtype to textPassword, but it allows user to enter for example a space as part of their password. Is there any way to prevent the user from entering a space as part of entering their password?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t want to use trim on your password you should just put an inputFilter in the EditText and when the user presses the space button or every other character you don’t want you should return “”.
Example (overview):