I am trying to apply card flip animation on ViewGroup inside PopupWindow. I am using AnimatorSet to apply animation over ViewGroup. Animation is happening within the bounds of the window. And part of window going out of window bounds are clipping. Any suggestions to avoid clipping?
I have found solution, but other solutions are welcome. :)
I used
scalXandscalYproperties ofobjectAnimator. When animation starts, I scale down window from value 0.9 to 0.5 for half of animation time. And again scale window from 0.5 to 0.9 for remaining animation time. As window size is reduced, window bounds perfectly fit inside clipping region during animation. This solved my problem. Below is the additional code incard_flip_right_out.xmlfrom this exampleBelow code added in
card_flip_right_in.xml