Make FirebaseRecyclerAdapter get data under conditions and not all of them

前端 未结 4 799
我在风中等你
我在风中等你 2020-12-12 05:05

I need to adjust somehow the FirebaseRecyclerAdapter in order to get some data from my database and not all of them. Is there any way to achieve that? My end goal is to show

4条回答
  •  时光说笑
    2020-12-12 06:07

    User Firebase Query to limit your results

    Query query = database.child(FirebasePaths.HOUSES).orderByChild(PRICE).startAt(200);
    

    This will query your database for houses whose prices are above 200.

提交回复
热议问题