Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
731 views
in Technique[技术] by (71.8m points)

keyboard - android:inputType="textEmailAddress" - '@' key and a '.com' key?

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 entry.

In the blog entry for IMF Android IMF there is a particular image shown for composiong email where the soft keyboard consists of '@' key for email address entry.

But in this particular answer the displayed soft keyboard shows a '.com' key besides the '@' key.

Is this '.com' key a default key with android:inputType="textEmailAddress"? Or is there some setting involved?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There is no "default" really. android:inputType is merely a hint for your IME. Now that IME could be the stock Android 1.1 keyboard, the Android 2.0 keyboard, the HTC Sense keyboard, SwiftKey, Swype, you name it. Each one can decide for itself whether or not to add a ".com" key (or to entirely ignore inputType).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...