【问题标题】:Firebase Android - how to query not equals [duplicate]Firebase Android - 如何查询不等于[重复]
【发布时间】:2017-10-12 21:10:51
【问题描述】:

我有以下代码,但我不知道使用什么方法,比如.notEqualsto(uid)

public class CustomAdapter extends FirebaseRecyclerAdapter<UserVO, ContactViewHolder> {

    public CustomAdapter(DatabaseReference reference, String uid){
        super(UserVO.class,
                R.layout.item_contact,
                ContactViewHolder.class,
                reference.child(FIREBASE_USER_GLOBAL_LIST).orderByChild("email"));
    }

【问题讨论】:

  • 您实际面临的问题是什么。请详细说明

标签: android firebase firebase-realtime-database


【解决方案1】:

很遗憾,Firebase 不提供排除查询中值的方法,仅包含(使用 equalTo())。不过可以detect the absence of a property

【讨论】:

猜你喜欢
  • 2020-03-30
  • 1970-01-01
  • 2020-12-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-09-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多