If I have an int in Java that I\'m using as an Android color (for drawing on a Canvas), how do I manipulate just the alpha component of that int? For example, how can I use an o
in the android-support-v4:
int alpha = 85; //between 0-255 @ColorInt int alphaColor = ColorUtils.setAlphaComponent(Color.Red, alpha);