I want to remove the underlines from texts inside edittext fields.
Or if you want to just disable the red underline (and the autocorrect dialog), you can override the isSuggestionsEnabled() method on TextView.
isSuggestionsEnabled()
TextView
This will keep the keyboard autocomplete working.