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

Rotation on Android

$
0
0

Hi all,

We have gotten a small slew of issues on Android due to rotation. This is primarily caused by us screwing up the templates and forgetting to add a single parameter to the attribute for the main launcher. To fix this open your Activity.cs file in your android project and find the ActivityAttribute. Once you have found it, make sure you pass the following parameter to it:

ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)

This should allow rotation to work as expected in Xamarin.Forms.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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