Android(安卓)shape图形
16lz
2021-12-04
- 画一条虚线
<?xml version="1.0" encoding="utf-8"?> //虚线的宽度
作为背景资源添加到控件中,还需要设置这样一句话:`Android:layerType=”software”`
stroke:描边android:width="2dp" 描边的宽度,android:color 描边的颜色。我们还可以把描边弄成虚线的形式,设置方式为:android:dashWidth="5dp" android:dashGap="3dp"其中android:dashWidth表示'-'这样一个横线的宽度,android:dashGap表示之间隔开的距离
更多相关文章
- android:shape
- Android(安卓)PagerTabStrip和PagerTitleStrip的不同点
- Android(安卓)App更改背景颜色
- android中listview中去除背景色选中色
- ImageView的android:maxHeight,android:minHeight的正确设置
- android radiogroup样式(设置切换背景与文字颜色)
- Android(安卓)笔记二(线性布局)
- android:layout_width和android:width的区别
- 布局+基本UI