Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8291253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:04:18+00:00 2026-06-08T13:04:18+00:00

How can I animate adding new item or moving item from one position to

  • 0

How can I animate adding new item or moving item from one position to another in listview? I want to make animation effect, like in this app: any.do(youtube). I’m using adapter extended from ResourceCursorAdapter. How I should use newView and bindView functions to achieve this effect? Or is there another way to do it, like extending ListView class? I suspect that there is a ScrollView instead of Listview in any.do app. But I think this is wrong way, if you will have many items in list. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:04:20+00:00Added an answer on June 8, 2026 at 1:04 pm

    To do that effect, you need to:
    1. “close” the slot where the item used to be.
    2. “open” a slot in the list, where the item will “land”.
    3. Move the item between the slots.

    To achieve the first animation, you need to animate the list item view itself. To make it disappear, you can animate the value of its bottom margin. I wrote a blog post about other Animation I did in Any.DO, where I animated this value – http://udinic.wordpress.com/2011/09/03/expanding-listview-items/. You can use the same animation to animate list item’s view.

    The “open” animation is the same as the close, but in the opposite direction. You take the list item, positioned right before your “landing point”, and animate its bottom margin outwards, making an empty space for the new item to come.

    Moving the item between the positions is fairly easy. You need to inflate a view with the same layout as the list items, populate it with the current item’s data, add it to the WindowManager:

    WindowManager winManager = (WindowManager) Context.getSystemService(Context.WINDOW_SERVICE);
    winManager.addView(..)
    

    and animate it’s coordinates by using:

    winManager.updateViewLayout(..);
    

    After the animation will finish – you can remove this view and refresh the list.

    The Add item animation is done using the same concept.

    Sorry I don’t have full source to provide here. At my blog post you can find the code for the expand/close animation.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to preserve Ripple effect on my UIImageView. I know we can animate
I want create an application with animate button? how can i do? after click
i am having problems with animation. Can't realize how to animate things in flex?
I am trying to animate a table row sliding up, then adding a new
I have this function for adding a new item to the beginning of the
I was just wondering how I can animate the jQuery form ui's div update
If i have my animations defined in xml then i can animate between activities
How can I animate the tray icon while the main application is processing? I
Possible Duplicate: Can you animate a height change on a UITableViewCell when selected? This
http://jsfiddle.net/zTTxu/ How can I animate once when page1 load example: animate 'a' to 'b'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.