Xamarin Cross-Platform and "Native" Codes

0

Good morning,

I recently started a cross-platform development study, and now I'm evaluating Xamarin (Visual Studio 2017), but I'm having difficulty on some issues. The main one is the possibility of overwriting the "common" class with native codes, I'm trying to set up the initial activity to stay PORTRAIT on Android, I found the code for that.

[Activity(Label = "App2", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Portrait)]

But this is not applied to my application when I run it, actually nothing I do in Activity seems to affect the application. Is there a process that might be missing? Is it necessary to link the activity (MainActivity) to the "common" CS?

The question, to summarize, what is necessary for the activity (Android) to impact the application if it is run on this platform?

I researched horrors and still have not found anything about it, any light would be welcome, a tutorial, a starting point, anything. Even in English.

    
asked by anonymous 29.08.2018 / 15:59

0 answers