android基础之EditText
EditText的属性:
android:numeric="integer"表示只在EditText中输入数字
android:singleLine="true"表示在EditText中输入的内容单行显示。不自动换行
android:maxLength="1"表示设置EditText输入内容最大长度为1
android:password 密码输入属性
代码如下:
由于EditText设置了numberic属性。singleLine属性 password属性 maxLength属性 所以只能输入一个数字 且密码显示。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。