top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between Xaml & axml in Xamarin Technology?

+1 vote
1,217 views
What is the difference between Xaml & axml in Xamarin Technology?
posted Dec 15, 2016 by Maninder Bath

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

AXML: Describe the UI for only Android apps. These are the same files used by Android native applications.

XAML: Specifies Xamarin.Forms layouts; these files describe a cross platform layout that each platform then renders in their native controls

2 - Can xaml designs be applied in axml?

Xaml designs cannot be directly copied into AXML (as they specify different controls) but they can be ported to AXML. Conceptually, xaml files describe how a UI should look on both platforms.

3 - How do I apply my css to axml files?

Cascading style sheets (CSS) are not applicable to Xaml as they describe how to style HTML. To style Xaml, look at the styles API used by Xamarin.Forms.

answer Jul 1, 2019 by Rushabh Verma R.
0 votes

AXML and XAML are two different XML specifications.

AXML is just supported/available for Xamarin.Android.

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

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

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

answer Dec 26, 2016 by Manikandan J
...