Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop edittext auto suggestion with email input type Programmatically in Android

How to disable auto suggestion with input type : textEmailAddress, while using like below the auto suggestion will appear, exactly want stop auto suggestion with email keyboard.

Used Code

<EditText
    android:hint="Logesh"
    android:inputType="textEmailAddress|textNoSuggestions|textMultiLine "
    android:layout_width="match_parent"
    android:importantForAutofill="no"
    android:layout_height="match_parent" />

and i tried below also

<EditText
    android:hint="Logesh"
    android:inputType="textEmailAddress|textVisiablePassword"
    android:layout_width="match_parent"
    android:importantForAutofill="no"
    android:layout_height="match_parent" />

when using textVisiblePassword that input of keyboard "@" not shown.

Thanks in advance !

like image 614
logeshpalani31 Avatar asked Aug 30 '19 11:08

logeshpalani31


Video Answer


1 Answers

Add this one in your EditText -

android:inputType="textFilter|textEmailAddress|textNoSuggestions"

and remove android:importantForAutofill="no"

like image 173
Abhishek Avatar answered Oct 01 '22 23:10

Abhishek