3
我在Visual Studio 2015中使用Xamarin创建了新的Android应用程序。 我将组件Android支持设计库23.4.0.1添加到我的项目(组件) In我的布局(Main.axml)我从入门https://components.xamarin.com/gettingstarted/xamandroidsupportdesign 但我得到错误android.support.design.widget.CoordinatorLayout没有声明未声明android.support.design.widget.CoordinatorLayout
任何想法?
Maxin.axml:
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
app:layout_scrollFlags="scroll|enterAlways">
<android.support.design.widget.TabLayout
app:layout_scrollFlags="scroll|enterAlways" />
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>
你从哪里得到这个错误?也许这只是一个警告,因为xmlns不包含它的定义? – Cheesebaron