Android Question Simple Animation is done only in last duration seconds...

Cableguy

Expert
Licensed User
Longtime User
Well, the title is a bit off, but it's basically that...

I'm using the standard animation lib to achieve a simple curtain effect on a Panel... I initialise the scale animation, set its duration and start it assigning the panel as target view...
The animation sort of works... But only in the last moments of the duration...
If duration is 1000 (1s), it happens almost instantly in the last milliseconds of the duration, if I set duration to 15000 (15s), the actual animation takes place only in the last 2 or 3 seconds...

Anyone else has experienced this?
 

Cableguy

Expert
Licensed User
Longtime User
I can't use the SetlayoutAnimated method because I need to create a series of simple animations chain... the end event of the current animation will start the next one and so on...

Here's my basic sample code... Tested in my Wiko lenny2 and in a Samsung A5, same result
 

Attachments

  • AnimBug.zip
    465.1 KB · Views: 288
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Ah ah!!!!
I new there was something weird going on... Thanks Erel!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…