Android Question Panel SetLayoutAnimated spring effect

Alessandro71

Well-Known Member
Licensed User
Longtime User
I'm using the B4XView SetLayoutAnimated to resize the height of a panel, which contains other views, with duration <> 0 looking for a curtain effect.
What really happens is that the panel dimensions are correctly increased/decreased in a linear fashion, but the contained views (some B4XFloatTextField) shows a "spring" effect, first compressing and then expanding again while the panel is resized.
Note that:
size/position of the views are not changed: they are the same before and after the SetLayoutAnimated call
the AnimationDuration of the parent activity is set to 0, so there is no animation when the Activity is first displayed

How do I disable the spring effect?
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
additional observation: on B4i, the spring effect is not present and the panel is resized linearly
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Upvote 0

Alessandro71

Well-Known Member
Licensed User
Longtime User
Different problem: I’m referring to the content of the panel, that shows a “bounce“ effect while resizing.
but since it’s just a cosmetic issue, I’ve just set duration to 0
 
Upvote 0
Top