Is there a way to filter data with Firebase UI RecyclerView?

前端 未结 1 659
醉酒成梦
醉酒成梦 2021-01-28 05:10

I\'m using the Firebase UI FirestorePagingAdapter, i have a colletion of posts and i want to filter the post that are not from the current user and order them by

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-28 05:43

    If you want to use Firebase UI to manage the RecyclerView, you will have to filter the results with another condition on the query.

    If you can't make the query return exactly what you want, you will not be able to use Firebase UI. Instead, you will have to manually perform the query, write code to filter the results, and apply those to a RecyclerView with your own adapter.

    0 讨论(0)
提交回复
热议问题