Recycler View Animation In Android Studio : Slide From Bottom

Recycler View Animation — 1

Code Op Geeks
2 min readJan 9, 2021

Adding animation into android application is quite easy. Animation makes our application user interface more elegant and user interactive. There are mainly three types of animation in available in android studio Translation, Rotation and Fading.

Recycler View Animation are different from these three animations. In recycler view we are going to animate its item. To Animate the item of recycler view there are three types of animation present :

1. Slide From Bottom

2. Fall Down

3. Slide From Right

All three animation are shown in the image given below :

In this article we are going to cover Slide From Bottom Animation. Here i am assuming that you already created the recycler view, adapter and and item which we are going to show in this recycler view.

To Read The Full article click here.

Now to animate the items of recycler view follow the steps given below :

Slide From Bottom

Step 1

Create a New Android Resource Directory anim inside your res directory : res\anim

Step 2

Inside this res\anim directory create a new Android Resource File slide_from_bottom (You can take any name you want for this android resource file).

In this slide_from_bottom file put the following code given below :

slide_from_bottom.xml

<?xml version=”1.0" encoding=”utf-8"?>

<set xmlns:android=”http://schemas.android.com/apk/res/android"
android:duration=”400">
<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>

--

--