Skip to content

Commit cb9250c

Browse files
author
ybq
committed
version 1.2.0
1 parent d15b73b commit cb9250c

File tree

10 files changed

+26
-33
lines changed

10 files changed

+26
-33
lines changed

README.md

+3-18
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,11 @@
99

1010
## Gradle Dependency
1111

12-
1. Add the JitPack repository to your build file
13-
14-
```gradle
15-
allprojects {
16-
repositories {
17-
...
18-
maven { url "https://jitpack.io" }
19-
}
20-
}
21-
```
22-
23-
2. Add the dependency
24-
2512
``` gradle
2613
dependencies {
27-
28-
implementation 'com.github.ybq:AndroidSpinKit:v1.0.0'
29-
14+
implementation 'com.github.ybq:AndroidSpinKit:1.2.0'
3015
}
31-
```
16+
```
3217

3318

3419
## Usage
@@ -49,7 +34,7 @@ dependencies {
4934

5035
```java
5136
ProgressBar progressBar = (ProgressBar)findViewById(R.id.progress);
52-
DoubleBounce doubleBounce = new DoubleBounce();
37+
Sprite doubleBounce = new DoubleBounce();
5338
progressBar.setIndeterminateDrawable(doubleBounce);
5439
```
5540

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66
dependencies {
77
classpath 'com.android.tools.build:gradle:3.2.1'
8-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
8+
classpath 'com.novoda:bintray-release:0.8.1'
99
}
1010
}
1111

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

library/build.gradle

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.github.dcendents.android-maven'
3-
4-
group = 'com.github.ybq'
5-
6-
version = '1.0'
2+
apply plugin: 'com.novoda.bintray-release'
73

84
android {
95

106
compileSdkVersion 28
11-
buildToolsVersion '26.0.2'
7+
buildToolsVersion '28.0.3'
8+
129
defaultConfig {
1310
minSdkVersion 14
1411
targetSdkVersion 28
1512
}
13+
14+
lintOptions {
15+
abortOnError false
16+
}
17+
}
18+
19+
20+
publish {
21+
userOrg = 'ybq'
22+
groupId = 'com.github.ybq'
23+
artifactId = 'Android-SpinKit'
24+
publishVersion = '1.2.0'
25+
desc = 'Android loading animations'
26+
website = 'https://github.com/ybq/Android-SpinKit'
27+
licences = ['MIT']
1628
}

library/gradle.properties

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
name = 'spinkit'

library/src/main/java/com/github/ybq/android/spinkit/sprite/Sprite.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
/**
1919
* Created by ybq.
2020
*/
21-
@SuppressWarnings("WeakerAccess")
2221
public abstract class Sprite extends Drawable implements
2322
ValueAnimator.AnimatorUpdateListener
2423
, Animatable
@@ -65,7 +64,7 @@ public int getAlpha() {
6564

6665
@Override
6766
public int getOpacity() {
68-
return PixelFormat.RGBA_8888;
67+
return PixelFormat.TRANSLUCENT;
6968
}
7069

7170
public float getTranslateXPercentage() {

library/src/main/java/com/github/ybq/android/spinkit/sprite/SpriteContainer.java

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/**
1010
* Created by ybq.
1111
*/
12-
@SuppressWarnings("WeakerAccess")
1312
public abstract class SpriteContainer extends Sprite {
1413

1514
private Sprite[] sprites;

sample/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
33
android {
44

55
compileSdkVersion 28
6-
buildToolsVersion '26.0.2'
6+
buildToolsVersion '28.0.3'
77

88
defaultConfig {
99
applicationId "com.github.ybq.android.spinkit"

sample/src/main/java/com/github/ybq/android/loading/DetailActivity.java

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
public class DetailActivity extends AppCompatActivity implements Colors {
2222

23-
@SuppressWarnings("WeakerAccess")
2423
public static void start(Context context, int position) {
2524
Intent intent = new Intent(context, DetailActivity.class);
2625
intent.putExtra("position", position);

sample/src/main/java/com/github/ybq/android/loading/Page1Fragment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
3838
super.onViewCreated(view, savedInstanceState);
3939
RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.list);
4040
GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 4);
41-
layoutManager.setOrientation(GridLayoutManager.VERTICAL);
41+
layoutManager.setOrientation(RecyclerView.VERTICAL);
4242
recyclerView.setLayoutManager(layoutManager);
4343

4444
recyclerView.setAdapter(new RecyclerView.Adapter<Holder>() {

0 commit comments

Comments
 (0)