Merge change 22920 into eclair
* changes: Change fade to use a gradient from opaque color to transparent color.
This commit is contained in:
@@ -8742,7 +8742,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
mLastColor = color;
|
mLastColor = color;
|
||||||
color |= 0xFF000000;
|
color |= 0xFF000000;
|
||||||
|
|
||||||
shader = new LinearGradient(0, 0, 0, 1, color, 0, Shader.TileMode.CLAMP);
|
shader = new LinearGradient(0, 0, 0, 1, color | 0xFF000000,
|
||||||
|
color & 0x00FFFFFF, Shader.TileMode.CLAMP);
|
||||||
|
|
||||||
paint.setShader(shader);
|
paint.setShader(shader);
|
||||||
// Restore the default transfer mode (src_over)
|
// Restore the default transfer mode (src_over)
|
||||||
|
|||||||
Reference in New Issue
Block a user