风言枫语  

TextView常见的子类包括EditText,Button,CheckBox, RadioButton等。



1、EditText

EditText继承自TextView,因此TextView所有属性均可供EditText使用。

但InputType一般只在EditText中使用


android:inputType="numberPassword"

其可选常量较多,常见的有 text,number, number,Password,phone等,详细可见:

http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType

 

posted on 2013-10-30 23:01  风言枫语  阅读(190)  评论(0编辑  收藏  举报