Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable email keyboard on android for input type email

I am creating application with WebView. I use the WebView to show HTML pages, containing input fields. If the HTML input fields expect an email address to be typed by the user, then I want to enable an email-friendly keyboard layout. Is it possible to set up the HTML or the WebView to show an email-friendly keyboard on Android, like you can on iPhone?

like image 633
user1271519 Avatar asked Apr 18 '12 09:04

user1271519


People also ask

What is InputType in android?

The android:inputType attribute allows you to specify various behaviors for the input method. Most importantly, if your text field is intended for basic text input (such as for a text message), you should enable auto spelling correction with the "textAutoCorrect" value.

How to set input type in EditText android?

To get the input type use getInputType() . int inputTypeValue = editText. getInputType(); The InputType values are defined (in hexadecimal) in the documentation.


1 Answers

You will only put

android:inputType="textEmailAddress" 

in your edittext box.

like image 92
V.J. Avatar answered Sep 21 '22 10:09

V.J.