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

Force layout redraw on Orientation Change

$
0
0

I would like to force a redraw of all the Viewsin my ContentPage. I have rendered a custom view from Android app with custom view renderer. The View in android implements OnMeasure to handle changes when screen rotates. When I consumed that Custom View directly from an Android app, I could get it to handle orientation changes in OnMeasure. But when it is used from the Forms application, rotation changes are not handled properly. How can I force Forms app to re-draw views so that the custom view's OnMeasure will get invoked ?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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