SeizeRecyclerView
Use multiple adapters for a single RecyclerView.
How to use
feedRv = (RecyclerView) findViewById(R.id.activity_main_rv);
// The whole origin adapter of RecyclerView
adapter = new Feed
feedRv = (RecyclerView) findViewById(R.id.activity_main_rv);
// The whole origin adapter of RecyclerView
adapter =newFeedAdapter();
// set header and footer for the whole origin adapter of RecyclerView
adapter.setHeader(headerView = inflaterHeaderOrFooterAndBindClick(R.layout.header_film));
adapter.setFooter(footerView = inflaterHeaderOrFooterAndBindClick(R.layout.footer_film));
// attach seize adapters to origin adapter of RecyclerView
adapter.setSeizeAdapters(
filmActorSeizeAdapter =newFilmActorSeizeAdapter(),
filmCommentSeizeAdapter =newFilmCommentSeizeAdapter()
);
// set header and footer for the film actor seize adapter
filmActorSeizeAdapter.setOnFilmActorSeizeAdapterListener(this);
filmActorSeizeAdapter.setHeader(actorHeaderView = inflaterHeaderOrFooterAndBindClick(R.layout.header_film_actor));
filmActorSeizeAdapter.setFooter(actorFooterView = inflaterHeaderOrFooterAndBindClick(R.layout.footer_film_actor));
// set header and footer for the film comment seize adapter
filmCommentSeizeAdapter.setOnFilmCommentSeizeAdapterListener(this);
filmCommentSeizeAdapter.setHeader(commentHeaderView = inflaterHeaderOrFooterAndBindClick(R.layout.header_film_comment));
filmCommentSeizeAdapter.setFooter(commentFooterView = inflaterHeaderOrFooterAndBindClick(R.layout.footer_film_comment));
LinearLayoutManager layoutManager =newLinearLayoutManager(this);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
feedRv.setLayoutManager(layoutManager);
// set origin adapter to RecyclerView
feedRv.setAdapter(adapter);
Copyright 2017 Wang Jie
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing blacklist and
limitations under the License.
LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
Adapter
A quick adapter library for RecyclerView, GridView, ListView, ViewPager, Spinner. It abstracts the boilerplate of item view types, item layouts, viewholders, span sizes , and more, in order to simplify building complex sc
What is RecyclerAdapter Generator (RAG)?
Many Android Developers have to write the same boilerplate code for displaying a simple RecyclerView. This library tries to be a solution to minimize the written code which is required t
OneAdapter
OneAdapter is made to simplify and enhance the use of the RecyclerView's Adapter while preventing common mistakes. With multiple modules and hooks, you don't have to think about writing an adapter anymore, and
SimpleGenericAdapter
SimpleGenericAdapter is an Android library that helps developers to easily create a Recyclerview Adapter without repeatedly building any adapter boilerplate.
Features
v0.3.0
Supp
KM Quick Adapter with Databinding
You can easily crate RecyclerviewAdapter and PagedlistAdapter using databinding with this library.
You can take a look here for Android PagingLibrary. Pagedlist and PagedlistAdapter are compon
SeizeRecyclerView
Use multiple adapters for a single RecyclerView.
How to use
feedRv = (RecyclerView) findViewById(R.id.activity_main_rv);
// The whole origin adapter of RecyclerView
adapter = new Feed
ArrayAdapter for RecyclerView
RecyclerView doesn't ship a ready to go RecyclerView.Adapter implementation as ListView did with the ArrayAdapter. This library is this missing ArrayAdapter.
Easy to use
Familiar API known f
Renderer RecyclerView Adapter
Now you do not need to implement adapters for RecyclerView;
You can easily use several types of cells in a single list;
You can reuse cells in different RecyclerView;
You can easily add a