Created
March 29, 2017 20:07
-
-
Save mpuz/4df99c57528725dbc8604bb67f4b2929 to your computer and use it in GitHub Desktop.
Android, Java: Gradients, banding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add the following override to your activity, | |
//This ought to fix the color banding issue you are seeing | |
//by setting the window format to support more colors. | |
@Override | |
public void onAttachedToWindow() { | |
getWindow().setFormat(PixelFormat.RGBA_8888); | |
} | |
//More info : http://developer.android.com/reference/android/view/Window.html#setFormat(int) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment