TextView(标签控件)

3.1常用
android:text                  //显示文本内容
android:textColor             //文本颜色
android:textSize              //文字的大小
android:textStyle             //字体样式:bold,italic
android:MaxLength             //允许的最大字符数
android:password              //是否用密文显示:true,false
3.2常用
setText(String);              //设置文本内容
getText().toString();         //返回文本内容
3.3补充属性
android:layout_woidth        //控件宽度
android:layout_height        //控件高度
android:id="@+id/id值        //设置控件的唯一标识
android:background           //设置背景
注意:fill_parent:组件宽度/高度充满整个屏幕
wrap_content:组件的宽度/高度为内容的实际宽度/高度

原文地址:https://www.cnblogs.com/fxx0129-nn/p/6839447.html