Skip to content

Commit 156685a

Browse files
committed
fix #1, add the prefix "si"
1 parent c2539a8 commit 156685a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/src/main/java/github/chenupt/springindicator/SpringIndicator.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ private void initAttrs(AttributeSet attrs){
8484
radiusMin = getResources().getDimension(R.dimen.si_default_radius_min);
8585

8686
TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.SpringIndicator);
87-
textColorId = a.getResourceId(R.styleable.SpringIndicator_textColor, textColorId);
88-
selectedTextColorId = a.getResourceId(R.styleable.SpringIndicator_selectedTextColor, selectedTextColorId);
89-
textSize = a.getDimension(R.styleable.SpringIndicator_textSize, textSize);
90-
textBgResId = a.getResourceId(R.styleable.SpringIndicator_textBg, 0);
91-
indicatorColorId = a.getResourceId(R.styleable.SpringIndicator_indicatorColor, indicatorColorId);
92-
indicatorColorsId = a.getResourceId(R.styleable.SpringIndicator_indicatorColors, 0);
93-
radiusMax = a.getDimension(R.styleable.SpringIndicator_radiusMax, radiusMax);
94-
radiusMin = a.getDimension(R.styleable.SpringIndicator_radiusMin, radiusMin);
87+
textColorId = a.getResourceId(R.styleable.SpringIndicator_siTextColor, textColorId);
88+
selectedTextColorId = a.getResourceId(R.styleable.SpringIndicator_siSelectedTextColor, selectedTextColorId);
89+
textSize = a.getDimension(R.styleable.SpringIndicator_siTextSize, textSize);
90+
textBgResId = a.getResourceId(R.styleable.SpringIndicator_siTextBg, 0);
91+
indicatorColorId = a.getResourceId(R.styleable.SpringIndicator_siIndicatorColor, indicatorColorId);
92+
indicatorColorsId = a.getResourceId(R.styleable.SpringIndicator_siIndicatorColors, 0);
93+
radiusMax = a.getDimension(R.styleable.SpringIndicator_siRadiusMax, radiusMax);
94+
radiusMin = a.getDimension(R.styleable.SpringIndicator_siRadiusMin, radiusMin);
9595
a.recycle();
9696

9797
if(indicatorColorsId != 0){

0 commit comments

Comments
 (0)