Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Use with FirebaseRecyclerAdapter #70

Open
pratikbutani opened this issue Oct 9, 2017 · 1 comment
Open

How to Use with FirebaseRecyclerAdapter #70

pratikbutani opened this issue Oct 9, 2017 · 1 comment

Comments

@pratikbutani
Copy link

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?

@micHar
Copy link
Contributor

micHar commented Oct 12, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants