Xamarin Visual Studio Android Designer 不会显示

问题描述 投票:0回答:3

我第一次尝试进行一些 Android C# 应用程序开发。我安装了适用于 VS2015 的 Xamarin,并且我能够创建、构建和启动 Android Xamarin 项目。唯一的问题是当我添加 Android 布局时,我可以看到 .axml 源,但看不到设计视图。无论我单击它多少次,它都会保持源视图打开。这是相当令人困惑和恼人的,因为没有显示任何错误或警告。任何帮助将不胜感激。

这是我尝试大量点击“设计器”选项卡的 GIF:

c# android xamarin
3个回答
1
投票
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.

asp下面的链接: https://forums.xamarin.com/discussion/5233/visual-studio-plugin-cant-switch- Between-source-design-anymore


0
投票

解决了。相反,我在布局文件夹中打开了 main.axml,这允许它加载一些文件几秒钟并向设计器显示。


0
投票

右键单击 xml 并“单击打开方式”,然后尝试查找“Android Designer”选项(如果找不到),然后尝试找到“Android 布局文件”选项,如下所示“第一个”,然后将其设置为默认值

© www.soinside.com 2019 - 2024. All rights reserved.