LucaMs Expert Licensed User Longtime User Sep 24, 2020 #1 I get an ugly effect when showing a B4XPages. I set the layout Animation duration to 0ms, but I think that the Root Pane(l) is animated. I tried: B4X: Copy Private Sub B4XPage_Created (Root1 As B4XView) Root1.SetLayoutAnimated(0, Root1.Left, Root1.Top, Root1.Width, Root1.Height) Root = Root1 Root.LoadLayout("MainPage") End Sub but it does not work.
I get an ugly effect when showing a B4XPages. I set the layout Animation duration to 0ms, but I think that the Root Pane(l) is animated. I tried: B4X: Copy Private Sub B4XPage_Created (Root1 As B4XView) Root1.SetLayoutAnimated(0, Root1.Left, Root1.Top, Root1.Width, Root1.Height) Root = Root1 Root.LoadLayout("MainPage") End Sub but it does not work.
LucaMs Expert Licensed User Longtime User Sep 24, 2020 #2 Momentarily I solved it like this (100 is a "random" number): B4X: Copy Private Sub B4XPage_Created (Root1 As B4XView) Sleep(100) Root = Root1 Root.LoadLayout("MainPage") End Sub Upvote 0
Momentarily I solved it like this (100 is a "random" number): B4X: Copy Private Sub B4XPage_Created (Root1 As B4XView) Sleep(100) Root = Root1 Root.LoadLayout("MainPage") End Sub
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2020 #3 I don't see any ugly transition with the main page... LucaMs said: Momentarily I solved it like this (100 is a "random" number): Click to expand... Not a good solution. Add this to B4XMainPage.Initialize to disable the animations: Code: Copy B4XPages.GetManager.TransitionAnimationDuration = 0 Upvote 0
I don't see any ugly transition with the main page... LucaMs said: Momentarily I solved it like this (100 is a "random" number): Click to expand... Not a good solution. Add this to B4XMainPage.Initialize to disable the animations: Code: Copy B4XPages.GetManager.TransitionAnimationDuration = 0
LucaMs Expert Licensed User Longtime User Sep 24, 2020 #4 Erel said: I don't see any ugly transition with the main page... Click to expand... "ugly"... an unwanted animation. Erel said: B4XPages.GetManager.TransitionAnimationDuration = 0 Click to expand... Works (strangely ? - or I should write... as always) Upvote 0
Erel said: I don't see any ugly transition with the main page... Click to expand... "ugly"... an unwanted animation. Erel said: B4XPages.GetManager.TransitionAnimationDuration = 0 Click to expand... Works (strangely ? - or I should write... as always)