[英]How can i show the slider on recyclerview?
I am working on an application where I have multiple products and i want to show those products with images and text(like title) on the recyclerview.我正在开发一个应用程序,我有多个产品,我想在 recyclerview 上显示带有图像和文本(如标题)的这些产品。 I want to use image-slider on recyclerview to show my products multiple image with textview.
我想在 recyclerview 上使用图像滑块来显示我的产品带有 textview 的多个图像。 I have successfully retrieve the textview's data from firebase and have shown that on the reyclerview but i dont know how to set the imageslider on the reccyclerview and show images.
我已经成功地从 firebase 中检索了 textview 的数据,并在 reyclerview 上显示了这一点,但我不知道如何在 reccyclerview 上设置图像滑块并显示图像。 please guide me.
请指导我。
Image slider is not a built-in component of RecyclerView
, or Android, for that matter.就此而言,图像 slider 不是
RecyclerView
或 Android 的内置组件。 So in order to show images in that way, you either have to implement everything yourself or use a third-party library.因此,为了以这种方式显示图像,您要么必须自己实现所有内容,要么使用第三方库。 The latter is usually much easier and faster.
后者通常更容易和更快。 With some search, I found two relevant libraries:
通过一些搜索,我找到了两个相关的库:
I also found an article that explains how to use the first library in relistic example: https://www.geeksforgeeks.org/auto-image-slider-in-android-with-example/我还发现一篇文章解释了如何在 relistic 示例中使用第一个库: https://www.geeksforgeeks.org/auto-image-slider-in-android-with-example/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.