Whats the difference between Axml and xml RRS feed

  • Question

  • User307738 posted

    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??


    Tuesday, May 26, 2020 5:31 AM

All replies

  • User38988 posted

    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.

    Wednesday, May 27, 2020 3:57 PM