android textview
16lz
2021-12-04
sp 用来设置字体大小
dp (dip)设置高度或宽度
<TextView
android:id="@+id/tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/nihao"
android:textSize="24sp"
android:textColor="#f30"
/>
@+表示把id为tv变量添加到r.java中
dp (dip)设置高度或宽度
<TextView
android:id="@+id/tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/nihao"
android:textSize="24sp"
android:textColor="#f30"
/>
@+表示把id为tv变量添加到r.java中
更多相关文章
- androidの常用基础应用知识总结
- Android(安卓)AlertDialog.Builder进入和退出动画效果设置
- android中跳转系统自带界面
- 自定义一个dialog没有标题
- Android(安卓)slidingmenu详解 优化侧滑
- Android设置“android:clickable="false"无效。点击事件依旧触发
- android保持屏幕常亮
- 史上最好用的Android全量版本更新库XUpdate使用指南
- 【Android(安卓)UI设计与开发】第06期:底部菜单栏(一)使用TabActivi