I want to implement Multiline EditText without a suggestion in android. I have a lot of googled 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 the layout file:
android:inputType="textFilter"
But my problem lies in the fact that without a sentence, Edit Text has a single line . I also add properties below:
noticeEditText.setSingleLine(false); noticeEditText.setVerticalScrollBarEnabled(true); noticeEditText.setHorizontalScrollBarEnabled(false);
But still getting a separate line Editing a text view. What should I do to get a multi-line text view without a suggestion .
Thanks.
source share