简体   繁体   English

如何在 recyclerview 上显示 slider?

[英]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.请指导我。

i want to show like this我想这样展示在此处输入图像描述

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.

相关问题 如何将recyclerview中的所有数据传递给另一个活动并在listview或recyclerview中显示它 Firebase - How can I pass all the data in the recyclerview to another activity and show it in the listview or recyclerview Firebase 如何将相同的值分组到 1 个 recyclerview 项目中? - How can I group same values into 1 single recyclerview item? 如何显示零计数? - How can I show zeros count? 如何在 recyclerview 上使用 onSwipe 从实时数据库中删除条目 - How Can I delete an entry from realtime database using onSwipe on a recyclerview 如何使用毕加索将我的 Firebase 数据库中的图像放到我的 RecyclerView 上? - How can I put images on my RecyclerView from my Firebase database using Picasso? 如何从我的 Firebase 实时数据库的多个节点填充我的 RecyclerView? - How can I populate my RecyclerView from multiple nodes of my Firebase Realtime Database? 如何在特定用户的回收视图(FirebaseRecyclerOptions)中显示所有子项 - how to show all children in a recyclerview (FirebaseRecyclerOptions) for a specific user 我如何使用 pyspark 显示 hive 表 - How can i show hive table using pyspark 如何使用 FirebaseUI 库(Java Android)在 recyclerview 中显示特定用户的帖子 - How to show Posts by Specific users in a recyclerview using FirebaseUI library (Java Android) 我如何向 flutter 中的有限用户显示图像 - How can i show images to limited users in flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM