How to remove the underline from the EditText field in Android?

后端 未结 10 1134
心在旅途
心在旅途 2020-12-14 14:47

Whenever a word is typed in the EditText box, I always see an underline under the word being typed. But when I press a space after that word I no longer see the underline.

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 15:05

    Read this if you want to keep emojis and textNoSuggestions doesn't work for you.

    textNoSuggestions does not work in every keyboard. inputType="textVisiblePassword" works but it removes emoji's from most keyboards.

    I found that setting inputType="textUri" works and keeps the ability to add emojis.

提交回复
热议问题