2016-04-09 116 views

回答

1

的Visual Studio支持智能感知爲Android .axml文件,但你必須啓用此第一。對於啓用此功能,請閱讀How do I enable Intellisense in Android .axml files? - 如果你沒有找到在提到目錄中的文件(見文章),你可以從GitHub下載這些:

android-layout-xml.xsd

schemas.android.com.apk.res.android.xsd

+0

感謝您的回覆,但我已經試過了。 但下面提到的文件 1)Android的佈局xml.xsd 2)schemas.android.com.apk.res.android.xsd 不可用在我的系統 –

+0

我更新了答案。如果你沒有找到這些文件,你可以從GitHub下載。 –

0

對於Visual Studio 2015年。

鏈接:https://forums.xamarin.com/discussion/60962/enable-intellisense-for-axml-missing-android-layout-xml-xsd-schemas-android-com-apk-res-androiod

  • 下載「機器人式敷設出xml.xsd」和 「從schemas.android.com.apk.res.android.xsd」:將所有下載的文件放到C https://github.com/atsushieno/monodroid-schema-gen

  • :\程序文件(x86)\微軟的Visual Studio 14.0 \ Xml \ Schemas

  • 打開.axml文件並在Visual Studio中單擊XML/Schemas菜單。然後將相應文件添加到項目中。

0

Xamarin爲Visual Studio包括開箱基於XSD的IntelliSense支持的開始與我們週期7建立。 (XamarinVS 4.1.0.x)。

您現在可以嘗試切換到測試版頻道。在Visual Studio中去:

Tools - Options - Xamarin - Other

選擇Beta頻道,然後按Check now

請記住,如果你正在爲Xamarin.iOS發展,就需要切換到您的Mac的Beta頻道。這可以從Mac中的Xamarin Studio完成。

0

這是針對Visual Studio的,但您需要Xamarin Studio安裝才能使其工作。

0

要在Android的.axml文件使智能感知:

  • 下載或複製Android的佈局xml.xsd到Visual Studio文件夾\ XML \架構
  • 開放的catalog.xml和去年之後添加一行: http://schemas.android.com/apk/res/android'/>
  • 保存catalog.xml並重新啓動(或啓動)Visual Studio。

    .axml文件中的Intellisense應該默認工作。 (也許你需要添加一個schemas.android.com.apk.res.android.xsd文件了。)

閃的文件:https://github.com/atsushieno/monodroid-schema-gen

相關問題