AndroidViewAnimations icon indicating copy to clipboard operation
AndroidViewAnimations copied to clipboard

Strange Zoom animations

Open krossovochkin opened this issue 11 years ago • 5 comments

I raise this issue to clarify what animation ZoomXXXAnimators should describe. The question raised because of strange behavior.

Example: Look at ZoomOutUpAnimator. At first view zooming out and moving down a little and then with a very high velocity view flies up out of screen. The problem is the last motion (moving out of screen) looks ugly, maybe because of high velocity.

Could you clarify that problem exists, or it's not reproduced for you (tested on ICS 4.0.3 device)?

Animators affected:

  • ZoomOutUpAnimator
  • ZoomOutDownAnimator
  • ZoomInUpAnimator (must see at first motion)
  • ZoomInDownAnimator (must see at first motion)

Also problem not affected with Left/Right Animators. View moves out of screen with high velocity, but not with such, that can make some "artefacts". PS: there is a problem with ZoomInRight and ZoomOutRight (and ZoomInLeft with ZoomOutLeft) animations maybe have different velocity of moving out of screen (from out of screen). May be this is only visual effect.

The problem may be in '2000' value in animators. But I would like to know what was expected animation itself to think how it could be fixed.

Thanks

krossovochkin avatar Jul 15 '14 10:07 krossovochkin

Yeah, I have noticed this problem before. It should be 2000 value in animators. 2000 means the relative distance from the start point, we need to make it small to get a better effect.

daimajia avatar Jul 15 '14 10:07 daimajia

May be this value should depend on screen size (height) and position of view on a screen? I. e. distance between bottom of a view and top of the screen, for example

krossovochkin avatar Jul 15 '14 10:07 krossovochkin

You are right, there may be need a big structure change... do you have any good idea to re-construct.

daimajia avatar Jul 15 '14 10:07 daimajia

No, I don't, but I'll think about it

krossovochkin avatar Jul 15 '14 10:07 krossovochkin

Any news about this?

kashban avatar Oct 10 '14 13:10 kashban