Most of the people who work with Xamarin's Mono for Android in Visual Studio-face a bug where Intellisense doesn ' t wo RK for AXML in Source view.
One of the fix which worked for me is mentioned below.
- Launch Visual Studio 2012
- Open a solution with. AXML file in it
- Now XML main Menu should is visible on top
- Open "Schemas ..." menu
- Sort by ' File Name ' column and see if ' Android-layout-xml ' and ' schemas.android.com.apk.res.android ' are there. If found, skip to step 13
- If not found, go to "Program Files" if 32-bit system or "Program Files (x86)" If 64-bit system.
- Then go to "\msbuild\novell" or "\msbuild\xamarin\android"
- You should is able to see 2 files "android-layout-xml.xsd" and "schemas.android.com.apk.res.android.xsd"
- Copy these 2 files to "\microsoft Visual Studio 11.0\xml\schemas"
- Again Open the "Schemas ..." menu as mentioned in steps 3&4
- Now click "Add ..." button and Add these 2 files which should is located as mentioned in step 7 & 8
- Now restart Visual Studio and the XML editor for design layout should work fine with Intellisense
- From step 5 ....
- If above steps don ' t work, then close the Visual Studio 2012.
- Now open "Developer command prompt for Vs2012″under Windows Programs menu.
- Type "Devenv/resetsettings" without quotes.
- Launch Visual Studio and see if Intellisense works.
- If still not working, better go to Xamarin forums and post there.
Note: The Visual Studio installation directory will have a monodroidcatalog.xml file that is good to change to the following: [I am 64-bit, 32-bit No (86)]
<schemacatalog xmlns= "Http://schemas.microsoft.com/xsd/catalog" >
<schema href= "%programfiles (x86)%/msbuild/xamarin/android/android-layout-xml.xsd" targetNamespace= "http:/ /schemas.android.com/apk/res/android " />
<schema href= "%programfiles (x86)%/msbuild/xamarin/android/schemas.android.com.apk.res.android.xsd" Targetnamespace= "Http://schemas.android.com/apk/res/android"/>
<association extension= "Axml" schema= "%programfiles (x86)%/msbuild/xamarin/android/android-layout-xml.xsd"/ >
</SchemaCatalog>
The red mark part is my manual addition. After saving this file I restart Vs and then create a new. axml file after the cute smart tip comes out.