英文:
How to create a recyclerview that reads the firestore reference field in Java?
问题
当用户将一首歌曲添加到收藏夹时,应用程序会将该收藏歌曲的引用保存在一个名为'favorites'的集合中,因此我想创建一个查询,以便创建一个可以显示被引用的歌曲数据的回收视图。
音乐文档:
引用音乐的文档:
英文:
when a user adds a song to the favorites, the application saves the reference of the favorite song in a collection called 'favorites', so I would like to create a query to be able to create a recycler view that shows the data of the song that is being referenced.
Music document:
Document where the music is being referenced:
答案1
得分: 0
你可以尝试使用FirebaseUI for Cloud Firestore。
它提供了一个实用类,可以轻松地将Firestore数据查询到RecyclerView
中。
英文:
You can try FirebaseUI for Cloud Firestore
It provides a utility class to easily query Firestore data into RecyclerView
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论