Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExpandAnimation not smooth the first execution #4

Open
kikoso opened this issue Aug 5, 2013 · 8 comments
Open

ExpandAnimation not smooth the first execution #4

kikoso opened this issue Aug 5, 2013 · 8 comments

Comments

@kikoso
Copy link

kikoso commented Aug 5, 2013

Hello Udinic,

Thanks a lot for your OpenSource contributions :-). I have been dealing with the ExpandAnimation, and it seems that the animation is not smooth the first execution (but completely fine on the subsequent ones). Is this a known issue?

@Udinic
Copy link
Owner

Udinic commented Aug 13, 2013

Not that I know of.

Which device are you using? If the problem persists - you can probably optimize the animation by allocating stuff prior to running the animation, thus making it smoother.

@kikoso
Copy link
Author

kikoso commented Aug 13, 2013

-GTI9001 2.3.6
-GT-N7100 4.1.2
-GT-I9100 4.1.2

Since it is involving different versions I believe is a general issue with the animation. The first time the animation is performed there is an abrupt "jump" to an state that should probably be there half of the animation. Here there is a video: http://youtu.be/X7DXWxUzlP4

The same problem also appears in those device when I execute the Android UI Patterns Application, where your example is included (so not a problem of my code customization).

@Udinic
Copy link
Owner

Udinic commented Aug 13, 2013

So there's probably a way to optimize it for the first time.

You're welcome to give it a try and suggest a pull request when you succeed.

Cheers,

On Tue, Aug 13, 2013 at 5:15 PM, Enrique López Mañas <
[email protected]> wrote:

-GTI9001 2.3.6
-GT-N7100 4.1.2
-GT-I9100 4.1.2

Since it is involving different versions I believe is a general issue with
the animation. The first time the animation is performed there is an abrupt
"jump" to an state that should probably be there half of the animation.
Here there is a video: http://youtu.be/X7DXWxUzlP4

The same problem also appears in those device when I execute the Android
UI Patterns Application, where your example is included (so not a problem
of my code customization).


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-22567675
.

Udi Cohen
http://www.udinic.com

@mammuth
Copy link

mammuth commented Sep 3, 2013

I had this aswell - it depends on your used margins (I guess you changed the values?)
Higher the one in the Animation and you will receive a smooth expanding.

Greets,
Max

@kikoso
Copy link
Author

kikoso commented Nov 26, 2013

Hello @mammuth .

Not really, I haven't changed the value. Modifying it again does not appear to change the behavior (which is actually right during the second execution).

@TeodorKolev
Copy link

This is not fixed!

@danielbenedykt
Copy link

Having the same issue!

@danielbenedykt
Copy link

Fixed by changing the visibility from Gone to Invisible.
Basically Gone will not draw until is Visible or Invisible, so first takes time on drawing and you see a jump. By changing to Invisible, it gets draw at start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants