remove underline form textview in android

view story

http://stackoverflow.com – I'm trying to create a text view, and then turn the text into a bitmap. The only problem is, the text view always underlines the last word, so when I turn it into a bitmap, the last word is underlined. I noticed this only happens when the keyboard is up, so I tryed removing it before creating the bitmap. It didn't work. Does anyone have any idea what can be done to fix this? This is the code: private AlertDialog.Builder createAlertDialogue() { AlertDialog.Builder editalert = new AlertDialog.Builder(context); editalert.setTitle("write text here"); mEditText = prepareNewEditText (HowTos)