MultiStateAnimation icon indicating copy to clipboard operation
MultiStateAnimation copied to clipboard

animation doesnt work with fragments

Open iwwi opened this issue 10 years ago • 4 comments

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

iwwi avatar Nov 17 '15 18:11 iwwi

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.

ajalt avatar Nov 17 '15 18:11 ajalt

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

iwwi avatar Nov 17 '15 22:11 iwwi

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.

ajalt avatar Nov 25 '15 01:11 ajalt

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.

iwwi avatar Nov 25 '15 18:11 iwwi