Xamarin.Android,Visual Studio-Designer不适用于v7 AppCompat库 [英] Xamarin.Android, Visual Studio - Designer doesn't work with v7 AppCompat library

查看:122
本文介绍了Xamarin.Android,Visual Studio-Designer不适用于v7 AppCompat库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Xamarin和Visual Studio使用Material Design创建一个应用程序.我想使用v7 AppCompat库来实现这一目标,因此我的应用在旧设备上可以很好地运行.

I want to create an app with Material Design using Xamarin and Visual Studio. I want to achieve this using the v7 AppCompat library, so my app runs well on older devices.

我有一个带有工具栏和按钮的活动.

I have an activity with a toolbar and a button.

但是在Visual Studio Designer中,布局与预期的不一样(没有Material主题,也没有工具栏):

But in the Visual Studio Designer the layout isn't as it's supposed to be(No Material theme and no Toolbar):

但是奇怪的是,它可以在我的手机上正常运行(无需进行任何更改):

But the strange thing is that it runs properly on my phone(without any changes made):

我该如何解决?

推荐答案

当前,Visual Studio Designer不显示支持库元素.
您可以使用Xamarin Studio,最近在那里对Designer进行了很大的改进,并且与Android Studio相比,它更容易与Visual Studio集成.
要下载它,请访问 http://download.xamarin.com/studio/Windows/XamarinStudio-6.0.2.73-0.msi (也可以通过您的仪表板在 www.xamarin.com 下载,不同版本).

Currently the Visual Studio Designer doesn't show Support Library elements.
You can use Xamarin Studio, which lately improved there Designer very much, and is easier to integrate with Visual Studio than Android Studio.
To download it go to http://download.xamarin.com/studio/Windows/XamarinStudio-6.0.2.73-0.msi (also available through your dashboard in www.xamarin.com under downloads, different versions).

当前,您需要将Cycle更改为beta(帮助->检查更新)

Currently you need to change the Cycle to beta (Help -> Check for Updates)

这篇关于Xamarin.Android,Visual Studio-Designer不适用于v7 AppCompat库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆