Skip to content

Commit a5c0772

Browse files
committed
update attrs, update 1.0.1
1 parent 156685a commit a5c0772

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ The sample app: [click me](https://github.com/chenupt/SpringIndicator/raw/master
1010
---
1111
Add the dependency to your build.gradle.
1212
```
13+
maven {
14+
url "https://oss.sonatype.org/content/repositories/snapshots/"
15+
}
1316
dependencies {
14-
compile 'com.github.chenupt.android:springindicator:1.0.0@aar'
17+
compile 'com.github.chenupt.android:springindicator:1.0.1-SNAPSHOT@aar'
1518
}
1619
```
1720
Add the indicator to your layout.

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'maven'
2626
ext {
2727
groupId = 'com.github.chenupt.android'
2828
artifactId = 'springindicator'
29-
version = '1.0.0-SNAPSHOT'
29+
version = '1.0.1-SNAPSHOT'
3030
}
3131

3232
configurations {

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
import android.animation.ObjectAnimator;
2121
import android.content.Context;
2222
import android.graphics.Canvas;
23-
import android.graphics.Color;
2423
import android.graphics.Paint;
2524
import android.graphics.Path;
26-
import android.graphics.PorterDuff;
2725
import android.util.AttributeSet;
2826
import android.view.View;
2927
import android.view.animation.OvershootInterpolator;
@@ -101,7 +99,6 @@ private void makePath(){
10199
@Override
102100
protected void onDraw(Canvas canvas) {
103101
makePath();
104-
canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.OVERLAY);
105102
canvas.drawPath(path, paint);
106103
canvas.drawCircle(headPoint.getX(), headPoint.getY(), headPoint.getRadius(), paint);
107104
canvas.drawCircle(footPoint.getX(), footPoint.getY(), footPoint.getRadius(), paint);

sample/src/main/res/layout/activity_main.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
android:layout_gravity="center" />
2727

2828
<github.chenupt.springindicator.SpringIndicator xmlns:app="http://schemas.android.com/apk/res-auto"
29-
app:textSize="18sp"
30-
app:indicatorColors="@array/indicator_colors"
31-
app:textColor="@color/colorPrimaryDark"
32-
app:selectedTextColor="@android:color/white"
33-
app:indicatorColor="@color/colorPrimary"
29+
app:siTextSize="18sp"
30+
app:siIndicatorColors="@array/indicator_colors"
31+
app:siTextColor="@color/colorPrimaryDark"
32+
app:siSelectedTextColor="@android:color/white"
33+
app:siIndicatorColor="@color/colorPrimary"
3434
android:id="@+id/indicator"
3535
android:layout_width="match_parent"
3636
android:layout_height="56dp"

0 commit comments

Comments
 (0)