Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ protected void setAttributes(AttributeSet attrs){
// Set Ripple Color
// Color by resource
int rippleColor = attrs.getAttributeResourceValue(MATERIALDESIGNXML,
"rippleColor", -1);
"rippleColor2", -1);
if (rippleColor != -1) {
setRippleColor(getResources().getColor(rippleColor));
} else {
// Color by hexadecimal
int background = attrs.getAttributeIntValue(MATERIALDESIGNXML, "rippleColor", -1);
int background = attrs.getAttributeIntValue(MATERIALDESIGNXML, "rippleColor2", -1);
if (background != -1)
setRippleColor(background);
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ protected void setAttributes(AttributeSet attrs) {
// Set Ripple Color
// Color by resource
int rippleColor = attrs.getAttributeResourceValue(MATERIALDESIGNXML,
"rippleColor", -1);
"rippleColor2", -1);
if (rippleColor != -1) {
setRippleColor(getResources().getColor(rippleColor));
} else {
// Color by hexadecimal
int background = attrs.getAttributeIntValue(MATERIALDESIGNXML, "rippleColor", -1);
int background = attrs.getAttributeIntValue(MATERIALDESIGNXML, "rippleColor2", -1);
if (background != -1)
setRippleColor(background);
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<declare-styleable name="CustomAttributes">

<!-- Color of ripple animation -->
<attr name="rippleColor" format="color|reference" />
<attr name="rippleColor2" format="color|reference" />
<!-- Speed of ripple animation -->
<attr name="rippleSpeed" format="float" />
<!-- indicate if the slider must show number indicator -->
Expand Down