我第一次尝试进行一些 Android C# 应用程序开发。我安装了适用于 VS2015 的 Xamarin,并且我能够创建、构建和启动 Android Xamarin 项目。唯一的问题是当我添加 Android 布局时,我可以看到 .axml 源,但看不到设计视图。无论我单击它多少次,它都会保持源视图打开。这是相当令人困惑和恼人的,因为没有显示任何错误或警告。任何帮助将不胜感激。
In your Solution Explorer, right click on an axml file and select "Open With". As one of the options, you should see "Android Designer". Open it with that. In addition, you can reset it as the Default by clicking the "Set As Default" button.
解决了。相反,我在布局文件夹中打开了 main.axml,这允许它加载一些文件几秒钟并向设计器显示。