TextView子类的常用属性

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

原文地址:https://www.cnblogs.com/keanuyaoo/p/3398186.html