Alessandro71 Well-Known Member Licensed User Longtime User Aug 2, 2022 #1 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?
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 Aug 2, 2022 #2 additional observation: on B4i, the spring effect is not present and the panel is resized linearly Upvote 0
LucaMs Expert Licensed User Longtime User Aug 2, 2022 #3 Alessandro71 said: How do I disable the spring effect? Click to expand... Very easy: run the animation now that it's summer ? I'm not sure what you get and what you want to get instead. Check out this old thread; unfortunately it is only for B4A. Upvote 0
Alessandro71 said: How do I disable the spring effect? Click to expand... Very easy: run the animation now that it's summer ? I'm not sure what you get and what you want to get instead. Check out this old thread; unfortunately it is only for B4A.
Alessandro71 Well-Known Member Licensed User Longtime User Aug 2, 2022 #4 LucaMs said: I'm not sure what you get and what you want to get instead. Check out this old thread; unfortunately it is only for B4A. Click to expand... not quite the same: I do not resize content, just adding/removing some space in the panel, and it works as intended in B4i, so I think is an Android issue Upvote 0
LucaMs said: I'm not sure what you get and what you want to get instead. Check out this old thread; unfortunately it is only for B4A. Click to expand... not quite the same: I do not resize content, just adding/removing some space in the panel, and it works as intended in B4i, so I think is an Android issue
Alexander Stolte Expert Licensed User Longtime User Aug 2, 2022 #5 Alessandro71 said: How do I disable the spring effect? Click to expand... Do you mean this? [B4X] [XUI] Smooth BorderCornerRadius on SetLayoutAnimated Hey, i try to create a expand animation with a round button, but if i expand the button, the corner radius looks ugly during the animation. How can i get a smooth? www.b4x.com Upvote 0
Alessandro71 said: How do I disable the spring effect? Click to expand... Do you mean this? [B4X] [XUI] Smooth BorderCornerRadius on SetLayoutAnimated Hey, i try to create a expand animation with a round button, but if i expand the button, the corner radius looks ugly during the animation. How can i get a smooth? www.b4x.com
Alessandro71 Well-Known Member Licensed User Longtime User Aug 3, 2022 #6 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
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