Skip to content

Commit

Permalink
1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zj565061763 committed Jun 22, 2018
1 parent 67d61d1 commit ed62e7e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 22 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Animator
对ObjectAnimator和AnimatorSet进行封装

## Gradle
`implementation 'com.fanwe.android:animator:1.1.3'`
# Gradle
[![](https://jitpack.io/v/zj565061763/animator.svg)](https://jitpack.io/#zj565061763/animator)

## 关于startAsPop(boolean clone)
# 关于startAsPop(boolean clone)
为了解决view没办法超出父布局边界来执行动画的问题,提供了这个方法

```java
Expand All @@ -28,12 +28,12 @@
T startAsPop(boolean clone);
```

## 效果
# 效果
![](http://thumbsnap.com/i/sK3VSRT3.gif?0521)
![](http://thumbsnap.com/i/cD2NW5lZ.gif?0815)
![](http://thumbsnap.com/i/4SvypvW0.gif?0522)

## 简单demo
# 简单demo
```java
/**
* 动画view和target在同一个父布局里面
Expand Down Expand Up @@ -110,7 +110,7 @@ public void onClickBtnAnimInside(View v)
.chain().setDebug(true).startAsPop(true);
}
```
## 火箭动画demo
# 火箭动画demo
```java
public void onclickStart(View v)
{
Expand Down Expand Up @@ -189,7 +189,7 @@ public void onclickStart(View v)
.chain().start();
}
```
## 汽车动画demo
# 汽车动画demo
```java
public void onclickStart(View v)
{
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.novoda:bintray-release:0.8.1'
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
46 changes: 33 additions & 13 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.zj565061763'

android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
versionCode 20180607
versionName "1.1.3"
versionCode 20180622
versionName "1.1.4"
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -17,26 +20,43 @@ android {
}

lintOptions {
checkReleaseBuilds false
abortOnError false
}
}

dependencies {
}

publish {
userOrg = 'zj565061763'
groupId = 'com.fanwe.android'

artifactId = 'animator'
publishVersion = '1.1.3'
desc = 'android animator library'
website = 'https://github.com/zj565061763/animator'
}

// 指定编码
tasks.withType(Javadoc) {
options {
encoding "UTF-8"
charSet 'UTF-8'
failOnError false
}
}

// 打包源码
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// 制作文档(Javadoc)
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

0 comments on commit ed62e7e

Please sign in to comment.