<gradient>Specifies a gradient color for the shape.attributes:
android:angle- Integer. The angle for the gradient, in degrees. 0 is left to right, 90 is bottom to top. It must be a multiple of 45. Default is 0.
android:centerX- Float. The relative X-position for the center of the gradient (0 - 1.0).
android:centerY- Float. The relative Y-position for the center of the gradient (0 - 1.0).
android:centerColor- Color. Optional color that comes between the start and end colors, as a hexadecimal value or color resource.
android:endColor- Color. The ending color, as a hexadecimal value or color resource.
android:gradientRadius- Float. The radius for the gradient. Only applied when
android:type="radial". android:startColor- Color. The starting color, as a hexadecimal value or color resource.
android:type- Keyword. The type of gradient pattern to apply. Valid values are:
| Value | Description |
|---|
"linear" | A linear gradient. This is the default. |
"radial" | A radial gradient. The start color is the center color. |
"sweep" | A sweeping line gradient. |
android:useLevel
posted on 2012-05-15 10:36
汪杰 阅读(415)
评论(0) 编辑 收藏 引用 所属分类:
Java