简体   繁体   English

在Xamarin中使用android.support.design.widget

[英]Use android.support.design.widget in Xamarin

I want to try this version of TabLayout in my Xamarin app: 我想在我的Xamarin应用程序中尝试使用此版本的TabLayout:

https://developer.android.com/reference/android/support/design/widget/TabLayout https://developer.android.com/reference/android/support/design/widget/TabLayout

But I can't figure out how to get a reference to it -- ie what package to add, and what namespace to use in Xamarin. 但是我不知道如何获得对它的引用-即要添加的包以及在Xamarin中使用的名称空间。

I did find a doc about a "tabLayout" here, but it doesn't seem like they are referring to the same one because they say it has been deprecated, which does not appear to apply to the one I want: 我确实在这里找到了有关“ tabLayout”的文档,但似乎他们不是在引用相同的文档,因为他们说它已被弃用,这似乎不适用于我想要的文档:

https://developer.android.com/reference/android/support/design/widget/TabLayout https://developer.android.com/reference/android/support/design/widget/TabLayout

Can anyone help? 有人可以帮忙吗?

Nuget Package Nuget套件

  • Xamarin.Android.Support.Design

Layout usage: 布局用法:

<android.support.design.widget.TabLayout
    android:id="@+id/tabs"
    ~~~
/>

Using example: 使用示例:

using Android.Support.Design.Widget;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 库android.support.design.widget错误 - Error with library android.support.design.widget 找不到 android.support.design.widget 类 - android.support.design.widget class not found 为 android.support.design.widget 更改 TextInputLayout 的 boxBackgroundColor - change boxBackgroundColor of TextInputLayout for android.support.design.widget 错误:包 android.support.design.widget 不存在 - error: package android.support.design.widget does not exist 我的应用程序也使用一次时崩溃 - My app crash when use also once <android.support.design.widget 包 android.support.design.widget 不存在 - package android.support.design.widget does not exist 错误包 android.support.design.widget 不存在 - error package android.support.design.widget does not exist Crosswalk Xwalk Webview冲突CollapsingToolbarLayout <android.support.design.widget> - Crosswalk Xwalk Webview conflict CollapsingToolbarLayout<android.support.design.widget> 错误:包 android.support.design.widget 不存在 import android.support.design.widget.FloatingActionButton; - error: package android.support.design.widget does not exist import android.support.design.widget.FloatingActionButton; 无法解决错误:包 android.support.design.widget 不存在问题 - Can't resolve error: package android.support.design.widget does not exist issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM