TextView的方法

来源:互联网 发布:好用的面霜干皮 知乎 编辑:程序博客网 时间:2024/06/05 03:26

1.使用android:gravity="center"来指定文字的对齐方式

可选值有top.bottom.left.right.center等 可以用“|”来指定

2.textsize方法指定文字大小

3textColor指定文字颜色

4 android:hint="This is text"  指定输入框提示性文本 

5android:maxLines="3"  指定输入框最大行数   三行

0 0