1月26日学习日志

今天学习了Textview的设计。

<TextView
android:id="@+id/textView3" //TextView的id
android:layout_width="wrap_content" //宽度自适应
android:layout_height="wrap_content" //高度自适应
android:layout_weight="0" //比重
android:text="talk is cheap show me the code" //显示的文本内容
android:textColor="#fff" //字体颜色
android:background="#000" //背景颜色
android:textSize="20dp" //字体大小
/>

原文地址:https://www.cnblogs.com/20193925zxt/p/14880856.html