android:inputType=“textEmailAddress” - '@' key and a '.com' key?

后端 未结 3 1290
不思量自难忘°
不思量自难忘° 2020-12-11 16:14

I\'m having an EditText where I set the inputType=\"textEmailAddress\". My understanding is that this should bring up a soft keyboard that\'s more suitable for email address

3条回答
  •  余生分开走
    2020-12-11 16:47

    Try this, it might help you

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

提交回复
热议问题