KeepSafe / MultiStateAnimation

Android library to create complex multi-state animations.
Apache License 2.0
403 stars 53 forks source link

animation doesnt work with fragments #2

Open iwwi opened 8 years ago

iwwi commented 8 years ago

When I go to another fragment and return to the fragment where is an ImageView with animation the ImageView, disappear.

ajalt commented 8 years ago

As I said in your previous issue #1, I don't think this is an issue with this library, since we use this library in production and it works as expected. If you can make a minimal reproducible example, I'll take another look.

iwwi commented 8 years ago

ok I already saw where is the issue, the issue is when I used de raw json, when I use de java animation it works, so when I go back the image is still there, but with json is disappear, this just happend when using fragments and replace one by other when it backs there is no image, but just when I using de raw json form

ajalt commented 8 years ago

Can you give more detail about how you're leaving and returning to the fragment? Are they in a pager, a fragment transaction, or just different activities? I can't reproduce this.

iwwi commented 8 years ago

so I had a navigation drawer, in one fragment of the navigation I put the animation with the json form, but when I go to another option of the menu of navigation drawer( that means I changed on one fragment to another ), then I go back and the animation disappears, in the same option I had a pager, but in this case the pager doesnt show the problem of animation dissappear, just when o go to another option of the menu in the navigation drawer, I resolve the problem making the animation with the java form declaration of the animations.