S Scantech Well-Known Member Licensed User Longtime User Sep 12, 2017 #1 Version 2.3 is having problems with translate. When Hide is used, the panel will flicker at the end of animation. B4X: Sub AnimateViewShowTranslate(Comp As View) Animate.InitializeTranslate("AnimationViews", 0, Activity.Height, 0, 0) Animation = True Animate.Duration = 500 Animate.Start(Comp) Comp.Visible = True End Sub Sub AnimateViewHideTranslate(Comp As View) Animate.InitializeTranslate("AnimationViews", 0, 0, 0, Activity.Height) Animation = True Animate.Duration = 500 Comp.Visible = False Animate.Start(Comp) End Sub Android 7.0 Samsung S6 B4A 7.3
Version 2.3 is having problems with translate. When Hide is used, the panel will flicker at the end of animation. B4X: Sub AnimateViewShowTranslate(Comp As View) Animate.InitializeTranslate("AnimationViews", 0, Activity.Height, 0, 0) Animation = True Animate.Duration = 500 Animate.Start(Comp) Comp.Visible = True End Sub Sub AnimateViewHideTranslate(Comp As View) Animate.InitializeTranslate("AnimationViews", 0, 0, 0, Activity.Height) Animation = True Animate.Duration = 500 Comp.Visible = False Animate.Start(Comp) End Sub Android 7.0 Samsung S6 B4A 7.3
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2017 #2 You can implement this animation with Comp.SetLayoutAnimated. Upvote 0