Skip to content

Commit

Permalink
first:blush:
Browse files Browse the repository at this point in the history
  • Loading branch information
JeasonWong committed Aug 14, 2016
0 parents commit 093353b
Show file tree
Hide file tree
Showing 44 changed files with 1,276 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions README.md
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.
```


1 change: 1 addition & 0 deletions SlackLoadingView/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
78 changes: 78 additions & 0 deletions SlackLoadingView/build.gradle
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']
}
17 changes: 17 additions & 0 deletions SlackLoadingView/proguard-rules.pro
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);
}
}
5 changes: 5 additions & 0 deletions SlackLoadingView/src/main/AndroidManifest.xml
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) {

}
}
Loading

0 comments on commit 093353b

Please sign in to comment.