[英]How to use recycler view in xamarin Android?
I am using this link for making recycler view in xamarin. 我正在使用此链接在xamarin中制作回收站视图。
My Steps are: 我的步骤是:
Add Support library through Solution explorer->Reference->Right Click on Reference->Manage NuGet Package then add Xamarin.Android.Support.v7.CardView and Xamarin.Android.Support.v7.RecyclerView. 通过解决方案资源管理器->参考->右键单击参考->管理NuGet软件包添加支持库,然后添加Xamarin.Android.Support.v7.CardView和Xamarin.Android.Support.v7.RecyclerView。
After adding libaray 添加libaray之后
In mainactivity.axml added 在mainactivity.axml中添加
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:scrollbars="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
But I got the following errors: 但是我遇到了以下错误:
Your version folder inside Xamarin.Android.Support.v7.RecyclerView is empty, which should have caused due to interruption in build process. Xamarin.Android.Support.v7.RecyclerView中的版本文件夹为空,这可能是由于构建过程中断引起的。
Any newly added Nuget Packages will require those to be downloaded as zip to zips folder & unzipped to respective reference folders at C:\\Users\\USERNAME\\AppData\\Local\\Xamarin\\
. 任何新添加的NuGet软件包将要求那些以下载为zip包拉链文件夹及解压缩到相应的文件夹,参考C:\\Users\\USERNAME\\AppData\\Local\\Xamarin\\
。
Try 尝试
C:\\Users\\USERNAME\\AppData\\Local\\Xamarin\\zips
folder 从C:\\Users\\USERNAME\\AppData\\Local\\Xamarin\\zips
文件夹中删除所有zip文件 RecyclerView
libary won't be empty) 编译并等待其完成。(如果编译成功,则RecyclerView
库的版本文件夹不会为空) Note : Ensure you have a reliable network connection :-) 注意:确保您具有可靠的网络连接:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.