Android: How to make position of View match the visual representation after animation -
i trying animate card game using animationset of translate , rotate animations. although using setfillafter(true) , see card visibly move , stay in it's new position, actual position of imageview still @ it's old location.
in google documentation says:
note: regardless of how animation may move or resize, bounds of view holds animation not automatically adjust accommodate it. so, animation still drawn beyond bounds of view , not clipped. however, clipping occur if animation exceeds bounds of parent view.
this means of old onclicklisteners, etc still being associated old position rather newly updated visual representation, , new animation applied view occur initial spot, not newly located one.
what best way effect seek (a card sliding hand center of screen, different linearlayout, , in later sequence sliding spot off screen)?
i know seek possible people @ bytesequencing.com have accomplished smooth animation effect in android game "hearts! (free)" discovered in market.
thanks!
Comments
Post a Comment