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

[Xamarin.Forms.Android]How to force layout pass for whole page?

$
0
0

I'm using a custom renderer for my Entry's on Android. With some help of the MaterialTextView library i managed to get it all working, but when this control needs more space. It will just draw inside the bounds.
When i force Xamarin.Forms a layout via a button and hide/unhide another element, the allocated size is correct and gets drawn correctly.

But then, when i remove the error it's still using this extra space untill i force a full page load again (via a button and hiding another element).

What's the best way to force a layout pass so my control gets the correct size and it won't clip in the parents?


Viewing all articles
Browse latest Browse all 79144

Trending Articles



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