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

Stop redrawing the whole page on minor visual change like text content

$
0
0

I have an app with a digital clock in the corner of the page in the format HH:mm:ss
e.g. 10:35:23
This this done with a label that has its text property updated every second.

It all works fine but, using the Android GPU profiler and 'show view update' settings, I can see that the whole page is being redrawn every second!
Playing around further the whole page even gets redrawn with a seemingly harmless colour change!!

I have tried taking the Label out into a AbsoluteLayout in the hopes that the measure/layout phase didn't spill out into all the other parent views - but it does :(

Does anyone know of a nice way to stop this?

The only alternative I have found is drawing the text in a SKCanvas and having it update that way - only the canvas is redrawn in this instance.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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