-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## What's SlackLoadingView ? | ||
Imitate Slack loading animation. | ||
|
||
## Demo | ||
<img src="http://i2.piimg.com/1070/0a3bbeb7b73c6f87.gif" width = "432" height = "507.6" align=center /> | ||
|
||
## Arlticle | ||
[手摸手教你写炫酷控件](http://www.wangyuwei.me/2016/08/14/%E6%89%8B%E6%91%B8%E6%89%8B%E6%95%99%E4%BD%A0%E5%86%99Slack%E7%9A%84Loading%E5%8A%A8%E7%94%BB/) | ||
|
||
##Build | ||
#####Step 1 | ||
```build | ||
repositories { | ||
maven { | ||
url 'https://dl.bintray.com/wangyuwei/maven' | ||
} | ||
} | ||
``` | ||
#####Step 2 | ||
```java | ||
compile 'me.wangyuwei:SlackLoadingView:1.0.0' | ||
``` | ||
|
||
##**Lincense** | ||
|
||
```lincense | ||
Copyright [2016] [JeasonWong of copyright owner] | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
``` | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
group = 'me.wangyuwei' // Change this to match your package name | ||
version = '1.0.0' // Change this to match your version number | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion "24.0.1" | ||
|
||
defaultConfig { | ||
minSdkVersion 15 | ||
targetSdkVersion 23 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.android.support:appcompat-v7:23.4.0' | ||
} | ||
|
||
task generateSourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier 'sources' | ||
} | ||
|
||
task generateJavadocs(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath() | ||
.join(File.pathSeparator)) | ||
} | ||
|
||
task generateJavadocsJar(type: Jar) { | ||
from generateJavadocs.destinationDir | ||
classifier 'javadoc' | ||
} | ||
|
||
artifacts { | ||
// archives generateJavaDocsJar | ||
archives generateSourcesJar | ||
} | ||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
bintray { | ||
user = properties.getProperty("bintray.user") | ||
key = properties.getProperty("bintray.key") | ||
pkg { | ||
repo = 'maven' | ||
name = 'SlackLoadingView' | ||
desc = "imitate slack loading animation" | ||
|
||
version { | ||
name = '1.0.0' | ||
desc = 'imitate slack loading animation.' | ||
vcsTag = 'android, loading, view' | ||
} | ||
|
||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/JeasonWong/SlackLoadingView.git' | ||
websiteUrl = 'https://github.com/JeasonWong/SlackLoadingView' | ||
|
||
labels = ['android'] | ||
publish = true | ||
publicDownloadNumbers = true | ||
} | ||
configurations = ['archives'] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/wscn/Documents/android-sdk-macosx/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package me.wangyuwei.slackloadingview; | ||
|
||
import android.app.Application; | ||
import android.test.ApplicationTestCase; | ||
|
||
/** | ||
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | ||
*/ | ||
public class ApplicationTest extends ApplicationTestCase<Application> { | ||
public ApplicationTest() { | ||
super(Application.class); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<manifest package="me.wangyuwei.slackloadingview"> | ||
|
||
<application /> | ||
|
||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package me.wangyuwei.slackloadingview; | ||
|
||
import android.animation.Animator; | ||
|
||
/** | ||
* 作者: 巴掌 on 16/8/13 01:35 | ||
* Github: https://github.com/JeasonWong | ||
*/ | ||
public abstract class AnimatorListener implements Animator.AnimatorListener { | ||
|
||
@Override | ||
public void onAnimationStart(Animator animation) { | ||
|
||
} | ||
|
||
@Override | ||
public void onAnimationCancel(Animator animation) { | ||
|
||
} | ||
|
||
@Override | ||
public void onAnimationRepeat(Animator animation) { | ||
|
||
} | ||
} |