总结一下android shape的使用详解
来源:互联网 发布:海尔美的工厂模式java 编辑:程序博客网 时间:2024/06/14 08:58
shape使用、渐变色、分割线、边框、半透明、半透明阴影效果
下面是shape中各个属性代表的含义:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape=["rectangle" | "oval" | "line" | "ring"] > --- 默认为rectangle <corners -- shape=“rectangle”时使用, android:radius="integer" -- 半径,会被下边的属性覆盖,默认为1dp, android:topLeftRadius="integer" android:topRightRadius="integer" android:bottomLeftRadius="integer" android:bottomRightRadius="integer" /> <gradient -- 渐变 android:angle="integer" android:centerX="integer" android:centerY="integer" android:centerColor="integer" android:endColor="color" android:gradientRadius="integer" android:startColor="color" android:type=["linear" | "radial" | "sweep"] android:useLevel=["true" | "false"] /> <padding android:left="integer" android:top="integer" android:right="integer" android:bottom="integer" /> <size -- 指定大小,一般用在imageview配合scaleType属性使用。大小一般会适配滴 android:width="integer" android:height="integer" /> <solid -- 填充颜色,可是是十六进制颜色。 android:color="color" /> <stroke -- 指定边框,border,dashWidth和dashGap有一个为0dp则为 android:width="integer" android:color="color" android:dashWidth="integer" -- 虚线宽度 android:dashGap="integer" /> -- 虚线间隔宽度</shape>
0 0
- 总结一下android shape的使用详解
- Android shape的使用详解
- android shape的使用详解
- android shape的使用详解
- Android shape使用详解
- Android shape使用详解
- Android shape使用详解
- android shape 使用详解
- android shape使用总结
- 【android】shape使用总结
- android shape使用总结
- android shape使用总结
- android shape使用总结
- android shape使用总结
- android shape使用总结
- Android shape使用总结
- android shape使用总结
- Android shape的属性和使用详解
- Struts入门实例
- MJExtension轻量级框架的使用
- 下载PHP7的地址
- Swift性能探索和优化分析
- 面向对象设计之单一职责原则(SRP)
- 总结一下android shape的使用详解
- RoundedImageView源码解析(三)RoundedImageView解析
- 减少集成google-play-service-lib后编译的apk的大小
- 内联函数和宏定义的区别
- 10个应该避免的ExtJS开发实践
- android view组件中一些属性的疑问
- 【Unity Shaders】Mobile Shader Adjustment—— 什么是高效的Shader
- 判断jquery对象是否存在 用 $("#id").length>0
- 用Java自带的MD5加密