Comments (1)
Hi @markkko,
What have you tried so far? Where did you get stuck?
This article explains how to do it, check out the topic "Don’t add dividers as views — It lacks flexibility": https://medium.com/proandroiddev/itemdecoration-in-android-e18a0692d848
In the example it explains how to get the adapterPosition. Then where it checks for the lastPosition you can use the library method getSectionItemViewType to check if it's the footer. If your section doesn't have footer you can check if it's the last item using getPositionInSection and getSectionItemsTotal.
Hope it helps.
from sectionedrecyclerviewadapter.
Related Issues (20)
- Is it possible to support Paging concept introduced in recent year? HOT 6
- Error adding to dependecies HOT 1
- How can I bind the Header view? HOT 1
- How can I get the Section header position? HOT 5
- Suggestion to add example-code on how to use empty-views HOT 2
- OnClick in onBindItemViewHolder does not work HOT 1
- How to get header position? HOT 1
- swipe to delete... HOT 3
- Design suggestion based on the following use case HOT 1
- Is using Section as HashMap key a good design? HOT 5
- Can we have SectionedRecyclerViewAdapter.getSectionItemViewTypeForAdapterViewType as static method? HOT 2
- Optimize onCreateViewHolder
- removeAllSections HOT 2
- How can I get position group of recyclerview? HOT 2
- FirstVisibleItem not change after I use notifyDataSetChange
- Collapse when section when open new one
- Is there a way to set section background,like a cardview style
- how to Expand first item by default ?
- New versions changelog addition. HOT 1
- How Section Support ItemTouchHelper for drag & drop DataItem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sectionedrecyclerviewadapter.