How can I disable spelling corrections in an EditText‘s soft-keyboard programmatically in Android? The user can disable it from settings, but I need to disable it in my application.
Is there any way to do this?
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.
Set this in your layout’s xml for your EditText:
android:inputType="textNoSuggestions"Or call
setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS)in your Activity’If you need to support API 4 and below, use
android:inputType="textFilter"