am ed48c808: Merge change 22920 into eclair
Merge commit 'ed48c8081ccf82cb233cae0b4fcce98b848dc4e4' into eclair-plus-aosp * commit 'ed48c8081ccf82cb233cae0b4fcce98b848dc4e4': 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;
|
||||
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);
|
||||
// Restore the default transfer mode (src_over)
|
||||
|
||||
Reference in New Issue
Block a user