corwin42 Expert Licensed User Longtime User Dec 4, 2014 #1 I tried to animate a Checkbox to a new position and size with the new View.SetLayoutAnimated(). This looks strange, because the Checkbox first gets scaled up and then move/scales to the new position. Added an example. The effect is most visible on a tablet. Attachments SetLayoutAnimatedBug.zip SetLayoutAnimatedBug.zip 7.3 KB · Views: 687
I tried to animate a Checkbox to a new position and size with the new View.SetLayoutAnimated(). This looks strange, because the Checkbox first gets scaled up and then move/scales to the new position. Added an example. The effect is most visible on a tablet.
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2014 #2 This is not a bug. The size change animation works by changing the view's scale property. The scale is set based on the target size. In some cases you will see a "strange" scale effect when the animation starts. It is especially visible if the change is between a large size to a small size. I found out that the current implementation is better than starting from the original size and scaling it to the target size. In that case the animation ends with a similar jumpiness and it is more substantial.
This is not a bug. The size change animation works by changing the view's scale property. The scale is set based on the target size. In some cases you will see a "strange" scale effect when the animation starts. It is especially visible if the change is between a large size to a small size. I found out that the current implementation is better than starting from the original size and scaling it to the target size. In that case the animation ends with a similar jumpiness and it is more substantial.
T Troberg Well-Known Member Licensed User Longtime User Dec 11, 2014 #3 So, we can not expect a fix to this? Just so I know if I should leave the code in and hope it'll be fixed later, or rework it so that it doesn't resize, just move.
So, we can not expect a fix to this? Just so I know if I should leave the code in and hope it'll be fixed later, or rework it so that it doesn't resize, just move.
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2014 #4 It is a side-effect of the scaling animation which actually scales the whole view. As long as the animation is done by changing the scale property this side-effect will remain.
It is a side-effect of the scaling animation which actually scales the whole view. As long as the animation is done by changing the scale property this side-effect will remain.