https://kotlinlang.org logo
#android
Title
# android
k

Klaus

05/28/2020, 8:37 PM
How can I achieve that this
DividerItemDecoration
is only shown between sections and not between rows?
Easy going: I use a view as item separator, not a decoration. Fits for my case although it might be a problem in some situations.
a

allan.conda

05/29/2020, 3:13 AM
you can write your own ItemDecoration; which you will have access to the RecyclerView, Adapter, current position. So you can check the type and just draw your view when the current position is the section view
2 Views