-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Shell] Flyout menu item SelectionChanged navigation too laggy. #5216
Comments
I got the same problem . The same app switch very smoth on iOS platform, but on android phones , when switch between tabbed pages , it's more slow than it on iphones . |
I think what I see is a small bit of stutter, at least on an emulator. I'm sure we can look into this further. |
This is still an issue on pre9. I'm using a device, so it's not just emulator. |
This issue should be fixed in XF 4 pre 10 |
@Hasanajouz this particular fix will be part of the official pre10 we still want to tweak it a little bit more but the change with #5755 should make it better |
I downloaded the Xanimals sample and I see a very noticeable stutter when navigating to items from the flyout menu. This is only on Android (both emulator and physical device). I don't see this on iOS. My Xamarin Forms version is 4.1.0.555618. |
I am using the TailwindTraders sample application with Xamarin.Forms 4.1.0 and I can confirm, that the Navigation is laggy on the Device (Moto G 5, Android 8.1.0). |
The animation is clearly laggy on Android. I have opened an issue which demonstrates that: Is there any workaround for this behavior? |
Flyout is slowly closed so tell me any link or result to fix this |
Why is this bug closed? It still present! |
I have a workaround - it's not pretty, but it stops the flyout jitter on close. My hope is that it sheds some light to the development team on a fix for this and get others a temporary workaround. It looks like the problem is that there is too much going on in the main thread while the flyout close transition is trying to run. (Android DrawerLayout CloseDrawer() animation) NOTE: this workaround addresses the Xamarin Forms logic for creating and setting the page blocking the UI thread, but any other app logic running on the UI thread will cause the same jittery "close drawer" animation. One way to mitigate this would be to listen for FlyoutIsPresented to become true and pause any update logic running from running on the UI thread until FlyoutIsPresented has been false for some period. (i.e. 1000ms) In your subclass of Shell:
|
Is this still active? I am running on andoroid physical device and closing the flyout gets stuck for a moment |
I think I found the reason for it!
Is there some way to disable the GC during the page loading? |
Any solution? |
Description
[Shell] Flyout menu item SelectionChanged navigation is too laggy/slow
Steps to Reproduce
Expected Behavior
Navigation should be smooth, Should not lock the UI.
Actual Behavior
"Laggy", Slow and locks the UI with screens like the one shown here #5073
Basic Information
Version with issue: 4: pre-4
Last known good version:?
IDE: Visual Studio 2017
Platform Target Frameworks: Android 7:8-9
Affected Devices: Samsung Galaxy S9pus- S8plus, Emulators
Screenshots
Parent: #2415
The text was updated successfully, but these errors were encountered: