开发者

how to get soft keypad to write email id in edittext in android

I am using android:phoneNumber to open soft keypad to get phone number in 开发者_高级运维android.I want to open keypad which contains all key required to write email id in edittext.So is there any solution for this(email) like phone number. Thank you


Use textEmailAddress (0x00000021) as defined here: http://developer.android.com/reference/android/widget/TextView.html

In Java code:

 myEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);

In XML properties:

 android:inputType="textEmailAddress"


you can set property Input Type for EditText

how to get soft keypad to write email id in edittext in android


use the below code for getting the email soft keyboard

Editetxt email=(EditText)findViewById(R.id.edotetxtemail)
email.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜