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

后端 未结 3 1281
不思量自难忘°
不思量自难忘° 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条回答
  •  猫巷女王i
    2020-12-11 16:45

    Android's own SDK has an example of using inputType to modify behaviour (see: http://developer.android.com/resources/samples/SoftKeyboard/src/com/example/android/softkeyboard/SoftKeyboard.html)

    Interestingly, KeyEvent does not have a specific key code for the '.com' key in the question. I assume it uses an unused key code for this purpose.

提交回复
热议问题