当我点击一个inputText的,键盘的第一个字母开头的大写字母。当我输入一个电子邮件,理想将永远是小写。可以设置这个编程?
When I click on a InputText, the first letter of the keyboard begins on uppercase. As I am entering an e-mail, the ideal would always be lowercase. Is possible set this programatically?
在您的XML文件,你可以使用android:inputType.设置字段是一个电子邮件的输入类型。
In your XML file, you can use android:inputType. to set the field is a email input type.
编程,你可以做到这一点与setInputType()
Programmatically, you can do that with setInputType()
您可以指定 myEditText
是在XML文件的电子邮件域:
You can specify that myEditText
is an email field in your XML file :
android:inputType="textEmailAddress"
或以编程方式:
Or programmatically:
myEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
上一篇:C#如何推导出相对文件路径文件位于盛大父文件夹?文件、文件夹、路径、盛大
下一篇:访问谷歌API - GoogleAccountCredential.usingOAuth2 VS GoogleAuthUtil.getToken()GoogleAccountCredential、