Skip to content

Commit 044e673

Browse files
author
zagum
committed
fix reading attrs
1 parent d7e4aa1 commit 044e673

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

expandicon/src/main/java/com/github/zagum/expandicon/ExpandIconView.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public ExpandIconView(@NonNull Context context, @Nullable AttributeSet attrs, in
9191
final boolean roundedCorners;
9292
final long animationDuration;
9393
try {
94-
roundedCorners = array.getBoolean(R.styleable.ExpandIconView_roundedCorners, false);
95-
switchColor = array.getBoolean(R.styleable.ExpandIconView_switchColor, false);
96-
color = array.getColor(R.styleable.ExpandIconView_color, Color.BLACK);
97-
colorMore = array.getColor(R.styleable.ExpandIconView_colorMore, Color.BLACK);
98-
colorLess = array.getColor(R.styleable.ExpandIconView_colorLess, Color.BLACK);
99-
animationDuration = array.getInteger(R.styleable.ExpandIconView_animationDuration, (int) DEFAULT_ANIMATION_DURATION);
94+
roundedCorners = array.getBoolean(R.styleable.ExpandIconView_eiv_roundedCorners, false);
95+
switchColor = array.getBoolean(R.styleable.ExpandIconView_eiv_switchColor, false);
96+
color = array.getColor(R.styleable.ExpandIconView_eiv_color, Color.BLACK);
97+
colorMore = array.getColor(R.styleable.ExpandIconView_eiv_colorMore, Color.BLACK);
98+
colorLess = array.getColor(R.styleable.ExpandIconView_eiv_colorLess, Color.BLACK);
99+
animationDuration = array.getInteger(R.styleable.ExpandIconView_eiv_animationDuration, (int) DEFAULT_ANIMATION_DURATION);
100100
padding = array.getDimensionPixelSize(R.styleable.ExpandIconView_eiv_padding, -1);
101101
useDefaultPadding = (padding == -1);
102102
} finally {

0 commit comments

Comments
 (0)