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?
 
Problem solves almost. Adding Activity rather than B4XPages module works better. I was loading layouts using B4XPage classes but modules works better.
 
Upvote 0
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

Upvote 0
1:
Code: Copy
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

Similar Threads

Replies
8
Views
17K
Replies
2
Views
13K
Replies
22
Views
42K
  • Locked
  • Article Article
Replies
4
Views
23K
Back
Top