How do I enable Intellisense in Android .axml files?


Android Intellisense in Visual Studio needs two XML Schema files to work appropriately:

To find these files, go to your C:\Program Files (x86)\MSBuild\Xamarin\Android folder:

Note: In later versions, the location was changed to:

C:\Program Files (x86)\Xamarin Studio\AddIns\MonoDevelop.MonoDroid\schemas

Inside you will find two .xsd files:

1) android-layout-xml.xsd

2) schemas.android.com.apk.res.android.xsd


Visual Studio keeps all of the XML Schemas inside the respective folder:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Xml\Schemas

You can choose to move these two .xsd files to the location above, or simply just add these schemas within Visual Studio.

You can then "Add" these schemas inside Visual Studio via the XML -> Schemas -> Add dialog.

Last Updated: Oct 21, 2016 05:25PM EDT