• Stars
    star
    280
  • Rank 147,492 (Top 3 %)
  • Language
    Java
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

RecyclerView with layout animations

Travis-ci License Download

AnimatedRecyclerView

A RecyclerView with layout animations

Demo

Setup

To use this library your minSdkVersion must be >= 16.

In your build.gradle :

dependencies {
    implementation "com.mlsdev.animatedrv:library:1.0.1"
}

AndroidX support

dependencies {
    implementation "com.mlsdev.animatedrv:library:2.0.0"
}

Example

From the layout

<com.mlsdev.animatedrv.AnimatedRecyclerView
        android:id="@+id/recycler_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:animationDuration="600"
        app:layoutAnimation="@anim/layout_animation_from_bottom"
        app:layoutManagerOrientation="vertical"
        app:layoutManagerReverse="false"
        app:layoutManagerType="linear" />

You can create any layout animations

<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
    android:animation="@anim/item_animation_from_bottom"
    android:animationOrder="normal"
    android:delay="15%" />
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="500">

    <translate
        android:fromYDelta="50%p"
        android:interpolator="@android:anim/accelerate_decelerate_interpolator"
        android:toYDelta="0" />

    <alpha
        android:fromAlpha="0"
        android:interpolator="@android:anim/accelerate_decelerate_interpolator"
        android:toAlpha="1" />

</set>

From the code

AnimatedRecyclerView recyclerView = new AnimatedRecyclerView.Builder(this)
                .orientation(LinearLayoutManager.VERTICAL)
                .layoutManagerType(AnimatedRecyclerView.LayoutManagerType.LINEAR)
                .animation(R.anim.layout_animation_from_bottom)
                .animationDuration(600)
                .reverse(false)
                .build();

Start animation

  • First option
adapter.notifyDataSetChanged();
recyclerView.scheduleLayoutAnimation();
  • Second option Your RecyclerView must be casted to the AnimatedRecyclerView and an adapter must be set.
recyclerView.notifyDataSetChanged();

Authors

About MLSDev

MLSDev.com

AnimatedRecyclerView is maintained by MLSDev, Inc. We specialize in providing all-in-one solution in mobile and web development. Our team follows Lean principles and works according to agile methodologies to deliver the best results reducing the budget for development and its timeline.

Find out more here and don't hesitate to contact us!

More Repositories

1

TRON

Lightweight network abstraction layer, written on top of Alamofire
Swift
538
star
2

RxImagePicker

Android. Pick image from camera or gallery using RxJava2
Kotlin
334
star
3

development-standards

MLSDev Inc. Development Standards
55
star
4

example-realm-android

Java
51
star
5

LoadableViews

Easiest way to load view classes into another XIB or storyboard.
Swift
41
star
6

DroidFM

This application shows how you can integrate the RxJava, Realm, LastFM API, VK API for information on popular artists, their songs and albums. Additionally this app can stream and download any tracks that are available in VK.
Java
24
star
7

E-commerce-API

Ruby
19
star
8

RecipeFinderJavaVersion

Java
10
star
9

RxKeyboard

Java
9
star
10

MapsAndroidAppSample

It is a sample app with basic google maps functionality.
Kotlin
6
star
11

ecto_extensions

Useful Ecto extensions: search, sort, paginate, validators
Elixir
6
star
12

VideoThumbnailExtractor

Pick image frame from video using LiveData component
Kotlin
6
star
13

android-widget-SpreadBar

SpreadBar widget for Urs
Java
4
star
14

rails-chats-api

Chats API - test application
Ruby
4
star
15

activeadmin-map_address

Ruby
4
star
16

mls_ruby_capistrano_slacker

The way to organize your deploys using GitLab and Capistrano
Ruby
3
star
17

api_session_recovering

Recover json api session.
Ruby
3
star
18

easy-matchers

Easy matchers provides RSpec matchers for common Rails functionality
Ruby
3
star
19

MovieViewer

Sample app for exploring movies, TV and celebrities
Kotlin
3
star
20

the_bullet

Rails application template for API-only applications
Ruby
3
star
21

elixir-workshop-01

Internal MLSDev Elixir Workshop #01 - Automated Slack reminder
Elixir
3
star
22

generator-waab

Angular 2 and Angular 4 application generator based on webpack bundling system
JavaScript
3
star
23

api_authentication

json api authentication
Ruby
2
star
24

easy-demo

Demo Ruby on Rails application for easy-matchers
Ruby
2
star
25

elixir-workshop-05

Internal MLSDev Elixir Workshop #05 - Authorization
Elixir
2
star
26

mls_ruby_automated_gitlab_tags

Automated tool that prepares and creates GitLab release with notes
Ruby
2
star
27

LiveDataSocialAuth

Android LiveData library for Social auth with Google and Facebook
Kotlin
2
star
28

dinero

Elixir
2
star
29

AuthorizationAndroidAppSample

Java
1
star
30

elixir-workshop-03

Internal MLSDev Elixir Workshop #03 - Authentication
Elixir
1
star
31

elixir-workshop-07

Internal MLSDev Elixir Workshop #07 - Umbrella apps, part 1
Elixir
1
star
32

ConnectivityLiveData

The application network state observation
Kotlin
1
star
33

homie

Ruby
1
star
34

Android-Studio-templates

Code templates for Android studio
FreeMarker
1
star
35

AnimationsPack

Another implementation of animate.css on Android
Kotlin
1
star
36

mls_rubocop_configs

The place to make the world better πŸ€―πŸ‘Œ
1
star
37

rswag_schema_export

Export/Import your rswag schema.json during deploy with CI
Ruby
1
star
38

crystal_amber_backend_example

Crystal
1
star
39

the_bullet-generator

Ruby
1
star
40

elixir-workshop-04

Internal MLSDev Elixir Workshop #04 - Authentication, part 2
Elixir
1
star
41

moonstones

name was generated using `crystal init lib $(curl -s crystalshards.xyz/name)`
Crystal
1
star
42

elixir-workshop-06

Internal MLSDev Elixir Workshop #06 - Chat
Elixir
1
star
43

RecipeFinderKotlinVersion

Kotlin
1
star
44

mlsdev-frontend-interview-task

TypeScript
1
star
45

modules-templates

TypeScript
1
star