Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

SKGLView + Android is a Child of a Grid, Background of Grid goes black

$
0
0

Hello,

Where
I have a grid with a few buttons and a SKGLView.

When
When any of the children of the grid are hidden the background colour of the Grid goes black
(Until invalidate layout is called).
Manually calling the InvalidateLayout() layout function immediately after restoring the child element doesn't resolve the issue, regardless of the thread that invalidate is called from.

This is only with android and only with SKGLView, it doesn't happen with SKCanvasView.

Unacceptable Fix
The following does solve the problem but isn't practical:
After the layout has changed allow the user to press a button that calls InvalidateLayout(). This immediately resolves the background colour issue.

I believe this works because it is called well after all of the paint calls are made.

Unacceptable workaround
SKCanvasView functions correctly however cannot be used for various reasons.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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