How to make GridView animation like in Google Keep app?
Asked Answered
S

0

7

My problem

I am using GridView in my application. GridView has pretty simple cells: just two TextViews. When the user clicks button on the ActionBar, a Dialog opens. He can make a new cell here. I use this code to update my GridView:

mNotesAdapter.notifyDataSetChanged();

And it works perfectly. But the new cell just pops up immediately. And the other just changes their position. I want to achieve animation effect, which will look like Google Keep's one.

> Look Google Keep on Google Play Store.

My question

Is it possible? Please share some links or some knowledge about it.

I would greatly appreciate for your help. Alex. P.S. Sorry for my English:)

Sniffle answered 4/10, 2013 at 12:2 Comment(16)
Somebody! Please help!Sniffle
Reading this #11640491 SO question maybe can help you.Debacle
@hakanostrom, unfortunately, this is not I want.Sniffle
But thx for this link:)Sniffle
I am still waiting for some help.Sniffle
Were you able to find anything relevant?Laud
@Saket, unfortunately, no :(Sniffle
I managed to implement it perfectly on my own :PLaud
@Saket, wow! Could you share some code for me, please?:DSniffle
I plan to release a library once my app's development is complete. Do you need it immediately? Because the current code is a complete mess :PLaud
@Laud can you please share the code of what you've done?Enamor
@androiddeveloper Look into the new RecyclerView released alongside Android L. It is much better than the current Adapter based views and officially supports animations for item re-arrangements.Laud
@Laud I know. That's why I've asked for a sample that works on pre-"L". I need to use it on an app, but I can't afford it to work only on "L" versions...Enamor
Look into it again mate, it's included in the support library and supports API levels even below 14 (ICS).Laud
Did anyone find a sample for this? @LaudFda
Just use a RecyclerView :) @summersLaud

© 2022 - 2024 — McMap. All rights reserved.