Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

why xamrin layout use axml file but xamarin form user xaml?

what is axml file? whats their difrences?

Best Answer

  • RendyDelRosarioRendyDelRosario DOUniversity ✭✭✭
    Accepted Answer

    AXML and XAML are two different XML specs.

    AXML is used to define native ui in Xamarin.Android based on XML spec:

    xml.com/axml/axml.html

    AXML Is just supported/available for Xamarin.Android.

    XAML is the way Xamarin Forms could standardize Cross Platform UI based on XML spec

    https://msdn.microsoft.com/en-us/library/cc295302.aspx

    If you are using native Xamarin Android you will do UI using axml if using Forms then using XAML.

    Hopes this clears it out.

Answers

  • RendyDelRosarioRendyDelRosario DOUniversity ✭✭✭
    Accepted Answer

    AXML and XAML are two different XML specs.

    AXML is used to define native ui in Xamarin.Android based on XML spec:

    xml.com/axml/axml.html

    AXML Is just supported/available for Xamarin.Android.

    XAML is the way Xamarin Forms could standardize Cross Platform UI based on XML spec

    https://msdn.microsoft.com/en-us/library/cc295302.aspx

    If you are using native Xamarin Android you will do UI using axml if using Forms then using XAML.

    Hopes this clears it out.

  • Felix.xFelix.x USMember ✭✭
    edited October 2016

    Then what's the difference between Android Studio's xml (layout) and Xamarin.Android's axml?
    I see similarities on them, if not exactly the same.

  • JimBennettJimBennett GBXamarin Team, Insider, University, Developer Group Leader ✭✭✭✭

    @Fay.x - they are exactly the same, it's just the file extension that is different.

  • GautamJainGautamJain INMember ✭✭✭

    Thanks @Fay.x for asking. And @JimBennett for answering.

    I had an old sample with .xml files. I renamed it to .axml. Now when I open .axml, Visual Studio opens the built-in designer. Cool!

Sign In or Register to comment.