1. 画一条虚线
<?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表示之间隔开的距离

更多相关文章

  1. android:shape
  2. Android(安卓)PagerTabStrip和PagerTitleStrip的不同点
  3. Android(安卓)App更改背景颜色
  4. android中listview中去除背景色选中色
  5. ImageView的android:maxHeight,android:minHeight的正确设置
  6. android radiogroup样式(设置切换背景与文字颜色)
  7. Android(安卓)笔记二(线性布局)
  8. android:layout_width和android:width的区别
  9. 布局+基本UI

随机推荐

  1. 新手android 开发 错误集锦(持续更新中)
  2. android 取现在时间和以前的时间做差 求
  3. android HorizontalScrollView讲解
  4. Android(安卓)APK多个ICON入口
  5. android 按键
  6. Android(安卓)本地代码中的LIKELY和UNLIK
  7. 利用BLCR加快Android的启动过程
  8. Android启动画面实现
  9. Android(安卓)4.3新特性——SElinux简介
  10. Android的事件处理机制(概念理解)