No suggestion Edit Text with multiline in android

android, android-edittext

Solution

Try this and you will be happy:

android:inputType="textFilter|textMultiLine|textNoSuggestions"

It should work for you well.

Problem

I want to implement Multiline EditText with no suggession in android. I have googled a lot and I found below code : ``` noticeEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); ``` or ``` noticeEditText.setInputType( android.text.InputType.TYPE_CLASS_TEXT | android.text.InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD ); ``` or In layout file : ``` android:inputType="textFilter" ``` But my problem is that, with no suggestion, Edit Text is of single line. I have add below properties also : ``` noticeEditText.setSingleLine(false); noticeEditText.setVerticalScrollBarEnabled(true); noticeEditText.setHorizontalScrollBarEnabled(false); ``` But still getting single line Edit Text View. What should I do for getting Multiline edit text view with no suggestion. Thanks.

Original source