1、文字大小,颜色

属性:

* text              //设置文字内容

*textSize        //设置文字大小

*textColor      //设置文字颜色

*background  //设置背景颜色

代码:

<Button
android:id="@+id/btn_1"
android:text="按钮1"
android:textSize="30sp"
android:textColor="#FFFFFF"
android:background="#FF0000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

运行结果:

 

posted @ 2020-06-10 19:11  小秦同学在上学  阅读(13)  评论(0编辑  收藏  举报