recycler-fast-scroll icon indicating copy to clipboard operation
recycler-fast-scroll copied to clipboard

How to Use with FirebaseRecyclerAdapter

Open pratikbutani opened this issue 8 years ago • 1 comments

I have adapter of FirebaseRecyclerAdapter, How can I implement SectionTitleProvider.

        mAdapter = new FirebaseRecyclerAdapter<MyModel, MyHolder>(MyModel.class, R.layout.row_layout_list, MyHolder.class, postsQuery) {
            @Override
            protected void populateViewHolder(MyHolder viewHolder, MyModel quotes, int position) {
                viewHolder.bindTo(quotes);
            }

            @Override
            public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {
                return super.onCreateViewHolder(parent, viewType);
            }
        };

Is there any way to use with FirebaseRecyclerAdapter?

pratikbutani avatar Oct 09 '17 09:10 pratikbutani

Just like with any other Adapter, you extend the FirebaseRecyclerAdapter and implement SectionTitleProvider in that class.

micHar avatar Oct 12 '17 09:10 micHar