TextView之一:子类的常用属性

mac2022-06-30  26

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/jinhong-lu/p/4559506.html

最新回复(0)