GithubHelp home page GithubHelp logo

linecode / itemanimators Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikepenz/itemanimators

0.0 2.0 0.0 121.8 MB

ItemAnimators: Supercharged Animators for your RecyclerView

Home Page: http://mikepenz.github.io/ItemAnimators

License: Apache License 2.0

Java 100.00%

itemanimators's Introduction

ItemAnimators Maven Central Join the chat at https://gitter.im/mikepenz/itemanimators

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

Include in your project

Using Maven

compile "com.mikepenz:itemanimators:1.0.0@aar"
compile "com.android.support:recyclerview-v7:${supportLibVersion}"

How to use

//just provide the animator to your RecyclerView
mRecyclerView.setItemAnimator(new ScaleUpAnimator());

//now it will automatically take care of all animations when you add, remove, chanage, move items
//It is very important that you use the correct notify methods if items were changed, otherwise the adapter can't animate the items
//Read more: http://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#notifyDataSetChanged()
//If you want those things out of the box have a look at the **FastAdapter** it handles everything correctly for you
//https://github.com/mikepenz/FastAdapter

##Included animators

  • Simple

  • AlphaInAnimator

  • AlphaCrossFadeAnimator

  • Resize

  • ScaleUpAnimator

  • ScaleXAnimator

  • ScaleYAnimator

  • Move

  • SlideDownAlphaAnimator (Best for collapse animations)

  • SlideRightAlphaAnimator

  • SlideUpAlphaAnimator

  • SlideLeftAlphaAnimator

  • SlideInOutTopAnimator

  • SlideInOutRightAnimator

  • SlideInOutBottomAnimator

  • SlideInOutLeftAnimator

  • more will follow soon...

Developed By

License

Copyright 2016 Mike Penz

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.

itemanimators's People

Contributors

bskim45 avatar mikepenz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.