Forum Xamarin.Android

Whats the difference between Axml and xml

meirrotfleischmeirrotfleisch USMember ✭✭✭
Hi 👋
I downloaded some source code from tutorials. I can't understand why in the Layoutvfolder there are both the axml and xml (same names same layout)

Which are really needed??



  • jmatherjmather USMember ✭✭

    Use xml.

    .axml is nothing more than an extension hack that was used to render Android Layout Files i.e. Android flavored .xml files inside Visual Studio. It literally meant .axml (Android XML).

    We previously lacked infrastructure to interpret flavored versions of .xml files coming from all different types of workloads. However in 16.2 and 8.2 respectfully (Visual Studio and Visual Studio for mac), you can use .xml seamlessly in your application and be provided a layout editor, rich intellisense, and more.

    If you don't require a layout editor, you have been able to use .xml since the first release of MonoDroid as .axml is processed the same way as .xml at the end of the day.

Sign In or Register to comment.