How To Makes Awesome Zoom In Animation On CardView Inside Recycler View

This post will guide you to create simple and awesome animation using RecyclerView on Its items.
RecyclerView with CardView is now becoming standard in Android where someone wants to display information in list style.
RecyclerView provides best memory optimizations by reusing list cells.
In today’s world developers are making awesome tricks and building beautiful apps, So in this post i am going to tell you how you can create some awesome and cool animation by using RecyclerView and CardView

What is in this post:
1.Creating a android application with android studio
2.Creating a MainActivity
3.Editing activity_main layout.xml
3.Creating a ItemsAdapter for RecyclerView
4.Creating a layout for Adapter’s single item.

In first step Create a project in Android studio with name CardAnimation and create MainActivity

To use recycler view and card view you need to add these libraries into app’s build.gradle file.

Now edit you MainActivity’s layout file and put following contents

Now your MainActivity code will be like

In above code i am using a List to store images url which will be loaded at runtime by image loader and image caching library Picasso, Also you need to add internet permission in manifest file so that above images can be downloaded.

Now ItemsAdapter is a custom adapter class which extends RecyclerView.Adapter.

Inside onCreateViewHolder we need to inflate custom layout which contains CardView and and ImageView

Create a file with name card_single_item.xml
and place following contents inside file

Is the main logic for animation and image loading is inside onBindViewHolder method

As you can see there is zoom_in animation file has been used to animate cardview

Now you need to create a anim directory inside app’s resources folder and create

a zoom_in.xml file

Now you have done all the things to make card zoom in animation.

You can download complete code from here

Categories: Android,Animation,RecyclerView

Tags: ,,,


  1. Wow, fantastic weblog format! How lengthy have you been blogging for? you made running a blog look easy. The full glance of your web site is fantastic, let alone the content material!

  2. online education degrees

    Spot on with this write-up, I actually believe this web site needs far more attention. I’ll probably be back again to read more, thanks for the information!

  3. finance and business

    If some one wishes to be updated with most up-to-date technologies afterward he must be pay a quick visit this website and be up to date every day.

  4. Aw, this was an exceptionally nice post. Spending some time and actual effort to produce a really good article… but what can I say… I procrastinate a lot and don’t seem to get anything done.

  5. I do consider all the ideas you have offered for your post. They are very convincing and can certainly work. Still, the posts are very quick for starters. May just you please prolong them a little from subsequent time? Thanks for the post.

  6. Aw, this was an incredibly good post. Finding the time and actual effort to
    create a superb article… but what can I say… I put things off a lot
    and never seem to get anything done.

  7. Hmm it appears like your website ate my first comment (it was extremely long) so
    I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog blogger but I’m still new to the whole thing.
    Do you have any helpful hints for inexperienced blog writers?
    I’d definitely appreciate it.


Leave A Reply

Your email address will not be published.