Giter Site home page Giter Site logo

yash786agg / itemview-animation Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 6.0 1010 KB

Several type of Layout Animation using Recylerview,Listview and Gridview.

License: Apache License 2.0

android android-library android-studio android-ui animation animation-library animated recyclerview-item-animation recyclerview-animation listview gridview

itemview-animation's Introduction

ItemView-Animation

Several type of Layout Animation using Recylerview,Listview and Gridview.

Mobile Device Support

Supports all Android Api Version

Support View

RecyclerView, ListView, GridView

Demo

ItemView-Animation

Usage

Step 1 : Add "ItemView-Animation" to your Android project.

1- Open your project in Android Studio.

2- Download the library

(using Git Link ---> https://github.com/yash786agg/ItemView-Animation.git) or (Download a zip File archive to unzip)

3- Create a folder "reclv_animation" in your project.

4- Copy and paste the Code to your reclv_animation folder

5- On the root of your project directory create/modify the settings.gradle file. It should contain something like the following:

include ':app',':reclv_animation'

6- Go to File > Project Structure > Modules.

7- App > Dependencies.

8- Click on the more on the left green "+" button > Module dependency.

9- Select "reclv_animation Library".

Step 2 : Add Code to your Project

For Animation like Slide from Bottom:

LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(MainActivity.this,getResources().getIdentifier("layout_animation_from_bottom","anim",getPackageName())); your_recyclerview.setLayoutAnimation(animation); your_adapter.notifyDataSetChanged(); your_recyclerview.scheduleLayoutAnimation();

For Animation like Slide from Top:

LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(MainActivity.this,getResources().getIdentifier("layout_animation_fall_down","anim",getPackageName())); your_recyclerview.setLayoutAnimation(animation); your_adapter.notifyDataSetChanged(); your_recyclerview.scheduleLayoutAnimation();

For Animation like Slide from Right:

LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(MainActivity.this,getResources().getIdentifier("layout_animation_from_right","anim",getPackageName())); your_recyclerview.setLayoutAnimation(animation); your_adapter.notifyDataSetChanged(); your_recyclerview.scheduleLayoutAnimation();

For Animation like Slide from left:

LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(MainActivity.this,getResources().getIdentifier("layout_animation_from_left","anim",getPackageName())); your_recyclerview.setLayoutAnimation(animation); your_adapter.notifyDataSetChanged(); your_recyclerview.scheduleLayoutAnimation();

#Note:

You can also add this animation after adding all data form server request to arraylist.

if(notificationAdapter != null)
{
  LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(MainActivity.this,getResources().getIdentifier("layout_animation_from_left","anim",getPackageName()));
  your_recyclerview.setLayoutAnimation(animation);
  your_adapter.notifyDataSetChanged();
  your_recyclerview.scheduleLayoutAnimation();    
}

itemview-animation's People

Contributors

yash123482 avatar yash786agg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.