Created
August 23, 2017 05:12
-
-
Save adam-hurwitz/e5bda69566a431d9511430e63612f6be to your computer and use it in GitHub Desktop.
RippleTextView.java with RippleEffect.addRippleEffect() method
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
public RippleTextView(Context context) { | |
super(context); | |
getXMLAttributes(context, null); | |
RippleEffect.addRippleEffect(this, rippleEnabled, | |
backgroundColor, rippleColor); | |
} | |
public RippleTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
getXMLAttributes(context, attrs); | |
RippleEffect.addRippleEffect(this, rippleEnabled, | |
backgroundColor, rippleColor); | |
} | |
public RippleTextView(Context context, AttributeSet attrs, int | |
defStyleAttr) { | |
super(context, attrs, defStyleAttr); | |
getXMLAttributes(context, attrs); | |
RippleEffect.addRippleEffect(this, rippleEnabled, | |
backgroundColor, rippleColor); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment