You can specify the orientation of an activity by using the
ScreenOrientation property in the activity's attribute:
[Activity(ScreenOrientation = ScreenOrientation.Portrait)]
public class MyActivity : Activity
On Mon, Aug 27, 2012 at 10:28 AM, MysteriX wrote:
> And.. can you tell me how
Add an attribute to the activity if you want to lock in a certain
orientation.
[Activity( Label = "My Activity", ScreenOrientation =
Android.Content.PM.ScreenOrientation.Portrait )]
public class MyActivity : Activity
On 27 August 2012 15:28, MysteriX wrote:
> And.. can you tell me how
And.. can you tell me how to completly disallow the orientation change? it
will not be allowed to be changed..
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Orientation-Change-tp5711555p5711557.html
Sent from the Mono for Android mailing list archive at Nabble.
http://docs.xamarin.com/android/tutorials/Handling_Rotation
On Mon, Aug 27, 2012 at 6:28 AM, MysteriX wrote:
> Hallo
> i have aquestions:
> how do i notice a orientation change? if the Portrait mode is left and the
> Landscape mode appears, a new layout have to be loaded.
>
>
>
>
>
> --
> View th
Hallo
i have aquestions:
how do i notice a orientation change? if the Portrait mode is left and the
Landscape mode appears, a new layout have to be loaded.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Orientation-Change-tp5711555.html
Sent from the Mono for A