Android Question B4XPages animation flicker

dannyjon

Member
Licensed User
Longtime User
I have set animation to 0 on all pages and added B4XPages.GetManager.TransitionAnimationDuration = 0 in Main but still there is a very obvious animation from top-left each time I change to another page and load a different view. Is there a way to avoid this?
 

dannyjon

Member
Licensed User
Longtime User
Problem solves almost. Adding Activity rather than B4XPages module works better. I was loading layouts using B4XPage classes but modules works better.
 
Upvote 0

dannyjon

Member
Licensed User
Longtime User
Thank you, Erel.

Attached is the project. I used your ThreePages example and added another layout.

Issue in Designer, Save? I set Activity Animate to 0 and saved the layout. I load another layout then go back to the one I previously changed AND animation shows as 400, but I set it at 0. If I do File SaveAs and overwrite it a few times is stays at 0. This was the same for all the layouts I tested. Not affected by Animate=0 in Main. Even if animation 0 in layouts still I get the page appearing fast from top-left.
 

Attachments

  • B4AProject.zip
    1.3 KB · Views: 184
  • Files.zip
    5.5 KB · Views: 156
Upvote 0

dannyjon

Member
Licensed User
Longtime User
1:
B4X:
Public Sub Initialize
    B4XPages.GetManager.TransitionAnimationDuration = 0
End Sub

2: change the animation duration to 0 in the designer and save it.

No animation at all.
Thank you! The fix was to add the code quoted to ALL class modules and not just Main. Great Help!
 
Upvote 0
Top