I\'m trying to use xamarin.forms to develop an Android app and need to prevent completion suggestions on a text field. In vanilla Android I would set the inputtype to type_t
In the code building the user interface for a page, add a Keyboard
property to an Entry
, and use the Create
method to specify the None
constant of the KeyboardFlags
enumeration. This specifies that no suggested word completions will be offered on text that the user enters.
Content = new StackLayout {
Padding = new Thickness(0,20,0,0),
Children = {
new Entry { Keyboard = Keyboard.Create(KeyboardFlags.None) }
}
};
Note: this flag will also disable your other flags.
documentation is not updated but this flag is now added check github.
Additional references: