如何在Java中创建一个可以读取Firestore引用字段的RecyclerView?

huangapple go评论74阅读模式
英文:

How to create a recyclerview that reads the firestore reference field in Java?

问题

当用户将一首歌曲添加到收藏夹时,应用程序会将该收藏歌曲的引用保存在一个名为'favorites'的集合中,因此我想创建一个查询,以便创建一个可以显示被引用的歌曲数据的回收视图。

音乐文档:

如何在Java中创建一个可以读取Firestore引用字段的RecyclerView?

引用音乐的文档:

如何在Java中创建一个可以读取Firestore引用字段的RecyclerView?

英文:

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:

如何在Java中创建一个可以读取Firestore引用字段的RecyclerView?

Document where the music is being referenced:

如何在Java中创建一个可以读取Firestore引用字段的RecyclerView?

答案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.

huangapple
  • 本文由 发表于 2020年9月10日 07:19:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/63820750.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定