FirebaseRecyclerAdapter反向顺序

时间:2018-08-17 16:31:31

标签: android firebase firebase-realtime-database firebaseui

如何在此代码中对元素进行反向排序?

FirebaseRecyclerAdapter<Subscribers, SubscribersViewHolder> firebaseRecyclerAdapter = new FirebaseRecyclerAdapter<Subscribers, SubscribersViewHolder>(
        Subscribers.class, R.layout.subscribers_row, SubscribersViewHolder.class, dbReference
) {
    @Override
    protected void populateViewHolder(SubscribersViewHolder viewHolder, Subscribers model, int position) {
        viewHolder.setInfo(model.getId());
        viewHolder.setAddToFriendClick(model.getId());
    }
};

0 个答案:

没有答案