- 博客(2)
- 收藏
- 关注
原创 Android开发基本知识
页面布局:线性布局、相对布局、绝对布局、帧布局、网格布局、表格布局 大部分情况都使用线性LinearLayout 布局; 最外层的线性布局务必加上android:orientation 设置水平还是垂直; 通用的一些属性 android:layout_width 设置宽度,不设置的话或到值程序运行停止 android:layout_height 设置高度,不设置的话或到值程序运行停止 android:textColor 设置字体颜色 android:textSize 设置字体大小,单位:sp and..
2021-06-16 19:45:51 620 2
原创 Android开发 Button笔记
Android开发 Button笔记 文本大小、颜色 textSize text Color 自定义背景形状 Shape 中添加 solid:实心 就是填充的意思 android:color指定填充的颜色 gradient:渐变 android:startColor和android:endColor分别为起始和结束颜色,ndroid:angle是渐变角度,必须为45的整数倍。 另外渐变默认的模式为android:type=“linear”,即线性渐变,可以指定渐变为径向渐变,android:type
2021-06-14 17:35:48 2982 6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人