简体   繁体   中英

Remove underline from a string in Java/Android

I'm getting text input from an editText and setting it as a notification .setTitle, but when it shows in the notification, it shows up with an underline on certain words. I had no idea why, but when I went to test it, the android keyboard puts underlines under words it has auto completed. So, what would be the best method to remove this?

Use :

getText().toString() 

as described here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM