S Scantech Well-Known Member Licensed User Longtime User Sep 1, 2012 #1 Code: Sub AnimateViewShow(Comp As View) Dim Animate As Animation Animate.InitializeTranslate("", -Comp.Width, Comp.Top, Comp.Left, Comp.Top) Animate.Duration = 1500 Animate.Start(Comp) Comp.Visible = True End Sub Does not work properly. The panel view left and top value is set up to be centered at the screen during Activity_Create. It is off center when it is animating.
Code: Sub AnimateViewShow(Comp As View) Dim Animate As Animation Animate.InitializeTranslate("", -Comp.Width, Comp.Top, Comp.Left, Comp.Top) Animate.Duration = 1500 Animate.Start(Comp) Comp.Visible = True End Sub Does not work properly. The panel view left and top value is set up to be centered at the screen during Activity_Create. It is off center when it is animating.
Erel B4X founder Staff member Licensed User Longtime User Sep 2, 2012 #2 Have you seen this example: Android SlidingPanels - Simple way to create sliding layouts Upvote 0