Created
May 21, 2015 13:39
-
-
Save Jeevuz/b775e0d5f0dabdcaefe4 to your computer and use it in GitHub Desktop.
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
private void removeRippleEffectFromCheckBox(CheckBox checkBox) { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
Drawable drawable = checkBox.getBackground(); | |
if (drawable instanceof RippleDrawable) { | |
drawable = ((RippleDrawable) drawable).findDrawableByLayerId(0); | |
checkBox.setBackground(drawable); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment