Android Question [Solved] B4XPages - Root is animated

LucaMs

Expert
Licensed User
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:
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.
 

Erel

Administrator
Staff member
Licensed User
I don't see any ugly transition with the main page...
Momentarily I solved it like this (100 is a "random" number):
Not a good solution.

Add this to B4XMainPage.Initialize to disable the animations:
B4X:
B4XPages.GetManager.TransitionAnimationDuration = 0
 
Upvote 0
Top