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

android custom renderer onDraw (even DispatchDraw), not getting called on Invalidate()

$
0
0

Hi folks,

I'm wondering if I'm doing something that just won't work with async. My custom renderer sets a boolean flag in my control to tell it to "start rendering". In my OnElementPropertyChanged, I'm awaiting an async function that will keep updating the view. This function is getting called and I can see that it's going through many iterations in its while loop. It's changing the items being drawn and calling Invalidate(). But the onDraw function and even the DispatchDraw function, is not getting called more than once. I've called setWillNotDraw(false) in my constructor to be sure that the onDraw is called as well.

Thanks for any input!
Mike


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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