what's the correct inputType
for email
in EditText?
<EditText
android:id="@+id/email"
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_below="@+id/textEmail"
android:inputType=""/>
android:inputType="textEmailAddress"
If you hit Ctrl + Space in Eclipse then it will bring up the menu of options available and narrow them down as you type.
You don't need one, the default is fine. You only need an input type when you want special behavior- numeric only, password, things like that.
Edit: if you want an email address, then use textEmailAddress as others suggested. The body of an email, which is how I read the question, can be default. Subject has textEmailSubject, but tends to be ignored.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With