diff options
author | Romain Guy <romainguy@google.com> | 2011-04-26 11:50:17 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-04-26 11:50:17 -0700 |
commit | e1c6ff4b91072a4071589938c74dd65d66f88fb5 (patch) | |
tree | e2b743c63224a4038bbb1d598728680fffba8a0d /docs | |
parent | ee6d5cfdff475f6c1119f060b139bdc1b621fa8b (diff) | |
download | frameworks_base-e1c6ff4b91072a4071589938c74dd65d66f88fb5.zip frameworks_base-e1c6ff4b91072a4071589938c74dd65d66f88fb5.tar.gz frameworks_base-e1c6ff4b91072a4071589938c74dd65d66f88fb5.tar.bz2 |
Make setGradientCenter/Radius work.
The previous implementation would not rebuild the gradient shader
when programmatically changing the shader's properties. Also fixes
the documentation since the gradient center does affect linear
gradients.
Change-Id: I5387188484b862f6835b0da9042b25032e55e792
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/guide/topics/resources/drawable-resource.jd | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/html/guide/topics/resources/drawable-resource.jd b/docs/html/guide/topics/resources/drawable-resource.jd index cee8fc3..89c85e2 100644 --- a/docs/html/guide/topics/resources/drawable-resource.jd +++ b/docs/html/guide/topics/resources/drawable-resource.jd @@ -1561,11 +1561,9 @@ want, providing zero ("0dp") where you don't want rounded corners.</p> <dd><em>Integer</em>. 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.</dd> <dt><code>android:centerX</code></dt> - <dd><em>Float</em>. The relative X-position for the center of the gradient (0 - 1.0). -Does not apply when {@code android:type="linear"}.</dd> + <dd><em>Float</em>. The relative X-position for the center of the gradient (0 - 1.0).</dd> <dt><code>android:centerY</code></dt> - <dd><em>Float</em>. The relative Y-position for the center of the gradient (0 - 1.0). -Does not apply when {@code android:type="linear"}.</dd> + <dd><em>Float</em>. The relative Y-position for the center of the gradient (0 - 1.0).</dd> <dt><code>android:centerColor</code></dt> <dd><em>Color</em>. Optional color that comes between the start and end colors, as a hexadecimal value or <a href="more-resources.html#Color">color resource</a>.</dd> |