Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Show animated ActivityIndicator while device is rendering UI

$
0
0

Hi to all, due to not optimal performances when I navigate to a new page where there's a lot of xaml with complex UI, I have to wait from 1 to several seconds (depending on the target page complexity) before the device completes the rendering process in main thread blocking the UI while is doing this work.

I tried many solutions to optimize this process, but it seems that there's nothing to do to avoid or reduce the time that I have to wait (obviously excluding the optimization process of UI).
So the best solution for me when I have to navigate to a complex page that requires a noticeable time to complete its rendering process now is to open contemporary 2 new pages: 1 very light that works as activity indicator, and immediately the second that is the effective target page that require more time to be rendered and that will be displayed after some seconds when its rendering process will be completed.

The problem is that if I put any kind of animated object (I tried with standard activity indicator, Syncfusion busyindicator, and with a LottieXamarin animation) it stops to move itself when the heavier rendering process starts resulting in a freezed UI until the new page is popped in the navigation stack.

My question is: is there any way to put the push navigation process (including its rendering process) in background preventing that the cpu become full loaded and leaving the animation fluent? (i.e. using gpu)


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>