ShapeDrawable的资源的一些介绍与总结
2016-08-19 17:36
246 查看
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line|rectangle|oval|ring">//oval:椭圆,rectangle:矩形,ring:圆,line:线 <!--定义几何图形的四个角的弧度--> <corners android:radius="int" android:topLeftRadius="int" android:topRightRadius="int" android:bottomLeftRadius="int" android:bottomRightRadius="int" /> <!-- 定义使用渐变色填充 linear:线性渐变|radial:放射渐变|sweep--> <gradient android:angle="int" android:centerX="int" android:centerY="int" android:centerColor="color" android:endColor="color" android:gradientRadius="int" android:startColor="color" android:type="linear|radial|sweep" /> <!-- 定义几何形状的内边距 --> <padding android:left="int" android:top="int" android:right="int" android:bottom="int" /> <!-- 定义几何形状的大小 --> <size android:width="int" android:color="color" /> <!-- 定义使用单一颜色的填充 --> <solid android:color="color" /> <!-- 定义为几何形状绘制边框其中android:dashWidth表示宽度,android:dashGap表示之间隔开的距离 --> <stroke android:width="int" android:color="color" android:dashGap="int" android:dashWidth="int" /> </shape>
相关文章推荐
- 介绍一些免费的学术电子资源搜索引擎
- 收藏一些国内较早系统介绍设计模式的资源
- 国外一些好用的UX/UI设计工具和资源介绍
- 互联网技术学习中的一些资源总结
- 关于ShapeDrawable应用的一些介绍(下)
- 介绍几本 PHP 书籍和一些 PHP 相关资源链接
- Sirqul 的一些研究使用总结以及介绍。
- HeartBeat的一些介绍和功能上的一些总结
- NFS的介绍和一些问题的总结
- 一些资源的总结和推荐之性能篇
- Unicode GBK WindowXP字符集的一些总结和资源
- NFS的介绍和一些问题的总结
- Haswell 事务内存相关的一些资源介绍
- Memcache的总结介绍和一些命令的总结
- 黑马程序员 《ios零基础教程》-- ”Mac OS X的介绍”和一些“基础语法” 2014-3-18总结
- 介绍一些学习水晶报表的网络资源
- 总结一些oracle数据库视频教程相关介绍
- 关于ShapeDrawable应用的一些介绍(中)之Gradient
- 关于ShapeDrawable应用的一些介绍(上)
- 薛开宇学习笔记二之总结笔记--caffe 中solver.prototxt;train_val.prototxt的一些参数介绍