我有以下几点:
<EditText
android:inputType="number"
android:password="true"
....
</EditText>
我收到一个警告,安卓密码是德precated,我应该用inputType代替。有没有一种方法来指定inputType的号码和密码?
I'm getting a warning that "android:password" is deprecated and that I should use inputType instead. Is there a way to specify inputType as number and password?
设置机器人:inputType =numberPassword
Set android:inputType="numberPassword"
链接:http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType