Android Noise Effect

Many of the new Android apps I've seen use a noise effect on their background, usually a gradient. Interestingly, some applications use radial gradients throughout their application with this effect, which will require a large amount of disk space for images. Android now has a GradientDrawable that can easily create gradients. I was thinking about creating a noise effect programmatically.

Has anyone else done this before, and if so, how did you do it? Did you just use the image or write your own custom overhead noise?

+6
java android user-interface graphics noise
source share
1 answer

If you just want to build the Color Banding software package, you can do this by overriding the onAttachedToWindow() your activity as follows:

 @Override public void onAttachedToWindow() { super.onAttachedToWindow(); Window window = getWindow(); // Eliminates color banding window.setFormat(PixelFormat.RGBA_8888); } 

This worked well for my regular applications. I have not tested this with widdgets yet.

+1
source share

All Articles