Skip to content

Commit

Permalink
Merge branch 'release/v1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Oct 28, 2017
2 parents 50c858f + 077d2de commit 3f937a4
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 51 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#ItemAnimators [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.mikepenz/itemanimators/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.mikepenz/itemanimators) [![Join the chat at https://gitter.im/mikepenz/itemanimators](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mikepenz/itemanimators?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# ItemAnimators [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.mikepenz/itemanimators/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.mikepenz/itemanimators) [![Join the chat at https://gitter.im/mikepenz/itemanimators](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mikepenz/itemanimators?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

The **ItemAnimators** library comes with a huge collections of pre-created animators for your `RecyclerView`. It was created so developers can easily animate their `RecyclerView`.
These `Animators` correctly work with all view states and `RecyclerView` states (as the `DefaultItemAnimator` does)

> **DISCLAIMER**: this library does not animate items on scroll, just when added, removed, moved, or changed
#Preview
# Preview
<img src="DEV/preview/Telecine_2016-01-09-19-01-46.gif" width="32%">

#Include in your project
##Using Maven
# Include in your project
## Using Maven
```javascript
compile "com.mikepenz:itemanimators:1.0.0@aar"
compile "com.android.support:recyclerview-v7:${supportLibVersion}"
implementation "com.mikepenz:itemanimators:1.0.1@aar"
implementation "com.android.support:recyclerview-v7:${supportLibVersion}"
```

##How to use
## How to use
```java
//just provide the animator to your RecyclerView
mRecyclerView.setItemAnimator(new ScaleUpAnimator());
Expand All @@ -27,7 +27,7 @@ mRecyclerView.setItemAnimator(new ScaleUpAnimator());
//https://github.com/mikepenz/FastAdapter
```

##Included animators
## Included animators

* **Simple**
* `AlphaInAnimator`
Expand All @@ -50,13 +50,13 @@ mRecyclerView.setItemAnimator(new ScaleUpAnimator());

* more will follow soon...

#Developed By
# Developed By

* Mike Penz
* [mikepenz.com](http://mikepenz.com) - <[email protected]>
* [paypal.me/mikepenz](http://paypal.me/mikepenz)

#License
# License

Copyright 2016 Mike Penz

Expand Down
41 changes: 19 additions & 22 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,9 @@ android {

defaultConfig {
minSdkVersion 14
targetSdkVersion 25
versionCode 1000
versionName '1.0.0'

applicationVariants.all { variant ->
variant.outputs.each { output ->
def file = output.outputFile
def fileName = file.name.replace(".apk", "-v" + versionName + "-c" + versionCode + ".apk")
output.outputFile = new File(file.parentFile, fileName)
}
}
targetSdkVersion 27
versionCode 1001
versionName '1.0.1'
}
buildTypes {
debug {
Expand All @@ -48,36 +40,41 @@ android {
}

dependencies {
compile project(':library')
compile "com.android.support:cardview-v7:${rootProject.ext.supportLibVersion}"
implementation project(':library')
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.android.support:cardview-v7:${rootProject.ext.supportLibVersion}"
implementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"

//used to generate the drawer on the left
//https://github.com/mikepenz/MaterialDrawer
compile('com.mikepenz:materialdrawer:5.9.3@aar') {
implementation('com.mikepenz:materialdrawer:5.9.3@aar') {
transitive = true
exclude module: "itemanimators"
exclude module: "fastadapter"
exclude group: "com.android.support"
}

// used to fill the RecyclerView with the DrawerItems
// and provides single and multi selection, collapsable items
// https://github.com/mikepenz/FastAdapter
compile 'com.mikepenz:fastadapter:2.6.2@aar'
compile 'com.mikepenz:fastadapter-commons:2.6.0@aar'
implementation('com.mikepenz:fastadapter:2.6.3@aar')
implementation('com.mikepenz:fastadapter-commons:2.6.3@aar')

//used to generate the Open Source section
//https://github.com/mikepenz/AboutLibraries
compile('com.mikepenz:aboutlibraries:5.9.6@aar') {
transitive = true
}
implementation('com.mikepenz:aboutlibraries:5.9.8@aar')

//used to display the icons in the drawer
//https://github.com/mikepenz/Android-Iconics
compile 'com.mikepenz:material-design-iconic-typeface:2.2.0.1@aar'
implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.1@aar'

//https://github.com/JakeWharton/butterknife
compile 'com.jakewharton:butterknife:7.0.1'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

//used to load the images in the ImageListSample
//https://github.com/bumptech/glide
compile 'com.github.bumptech.glide:glide:3.8.0'
implementation('com.github.bumptech.glide:glide:3.8.0') {
exclude group: "com.android.support"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.util.List;

import butterknife.Bind;
import butterknife.BindView;
import butterknife.ButterKnife;

/**
Expand Down Expand Up @@ -83,11 +83,11 @@ public ViewHolder getViewHolder(View v) {
*/
protected static class ViewHolder extends RecyclerView.ViewHolder {
protected FrameLayout view;
@Bind(R.id.item_image_img)
@BindView(R.id.item_image_img)
protected ImageView imageView;
@Bind(R.id.item_image_name)
@BindView(R.id.item_image_name)
protected TextView imageName;
@Bind(R.id.item_image_description)
@BindView(R.id.item_image_description)
protected TextView imageDescription;

public ViewHolder(View view) {
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
buildscript {
repositories {
maven { url 'https://maven.google.com' }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.novoda:bintray-release:0.5.0'
}
}

allprojects {
repositories {
maven { url 'https://maven.google.com' }
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}

ext {
compileSdkVersion = 25
buildToolsVersion = "25.0.3"
supportLibVersion = "25.4.0"
compileSdkVersion = 27
buildToolsVersion = "27.0.0"
supportLibVersion = "27.0.0"
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maven stuff
VERSION_NAME=1.0.0
VERSION_CODE=100
VERSION_NAME=1.0.1
VERSION_CODE=101
GROUP=com.mikepenz
POM_DESCRIPTION=ItemAnimators Library
POM_URL=https://github.com/mikepenz/itemanimators
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Jul 02 14:41:32 CEST 2017
#Sat Oct 28 17:55:06 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ android {

defaultConfig {
minSdkVersion 14
targetSdkVersion 24
versionCode 100
versionName '1.0.0'
targetSdkVersion 27
versionCode 1001
versionName '1.0.1'
}
buildTypes {
release {
Expand All @@ -28,5 +28,5 @@ apply from: 'gradle-mvn-push.gradle'
apply from: 'gradle-jcenter-push.gradle'

dependencies {
compile "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
implementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
The <b>ItemAnimators</b> library comes with a huge collections of pre-created Animators for your RecyclerView.
]]>
</string>
<string name="library_itemanimators_libraryVersion">1.0.0</string>
<string name="library_itemanimators_libraryVersion">1.0.1</string>
<string name="library_itemanimators_libraryWebsite">https://github.com/mikepenz/itemanimators</string>
<string name="library_itemanimators_licenseId">apache_2_0</string>
<string name="library_itemanimators_isOpenSource">true</string>
Expand Down

0 comments on commit 3f937a4

Please sign in to comment.