Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Rendererrecyclerviewadapter | 1,153 | 8 | a year ago | 24 | April 17, 2021 | 1 | apache-2.0 | Java | ||
A single adapter with multiple view types for the whole project | ||||||||||
Awesome Chainlink | 99 | 3 years ago | 3 | |||||||
Genericadapter | 18 | 3 years ago | mit | Java | ||||||
⛳️ Easy to use android databinding ready recyclerview adapter | ||||||||||
Chainsync | 12 | 5 years ago | 10 | April 06, 2018 | 1 | mit | Python | |||
a framework for streaming blockchain transactions/operations into other mediums | ||||||||||
Song Vote Ppa | 7 | 3 years ago | 2 | PHP | ||||||
Ports and adapters implementation in PHP |
If you like this project you can show support by starring ⭐ this repository 🙏
All | View Renderer | Composite | Load More |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
ViewState | Diff Util | Payload |
---|---|---|
![]() |
![]() |
![]() |
https://github.com/vivchar/RendererRecyclerViewAdapter/wiki
dependencies {
compile 'com.github.vivchar:RendererRecyclerViewAdapter:3.0.1'
}
public class SomeModel implements ViewModel {
...
}
<LinearLayout ... >
<TextView android:id = "@+id/title" ... />
<ImageView android:id = "@+id/image" ... />
<Button android:id = "@+id/button" ... />
<CustomView android:id = "@+id/custom" ... />
</LinearLayout>
mRecyclerViewAdapter = new RendererRecyclerViewAdapter();
mRecyclerViewAdapter.registerRenderer(new ViewRenderer<>(
R.layout.item_layout,
SomeModel.class,
(model, finder, payloads) -> finder
.find(R.id.custom, (ViewProvider<CustomView>) customView -> { ... })
.setBackground(R.id.image, model.getBackground())
.setText(R.id.text, model.getText())
.setOnClickListener(R.id.button, v -> { ... })
));
mRecyclerViewAdapter.registerRenderer(...); /* you can use several types of cells */
/* Regular code:
mRecyclerView = (RecyclerView) findViewById(R.id.recycler_view);
mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
mRecyclerView.setAdapter(mRecyclerViewAdapter);
mRecyclerViewAdapter.setItems(getItems());
mRecyclerViewAdapter.notifyDataSetChanged();
*/
Send me a pull request with modified README.md to get a shoutout!
Copyright 2017 Vitaly Vivchar
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 permissions and
limitations under the License.