You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But how can I draw the divider only on subitems and not the header item?
Any hints how I can do this? Or is there already a function inside the library to hide dividers on headers?
The text was updated successfully, but these errors were encountered:
You will be able to specify a list of the view types directly in the 2 methods for dividers:
mRecyclerView.addItemDecoration(newFlexibleItemDecoration(getActivity())
.withDefaultDivider(
R.layout.recycler_simple_item,
R.layout.recycler_scrollable_expandable_item));
// OR only 1 view type.mRecyclerView.addItemDecoration(newFlexibleItemDecoration(getActivity())
.withDivider(R.drawable.divider, R.layout.recycler_simple_item));
// OR nothing as before (all views will have the divider)mRecyclerView.addItemDecoration(newFlexibleItemDecoration(getActivity())
.withDefaultDivider());
Note: From RC3, the view type, optionally, can be different from the layout resource id and can be customized by the developer.
I use the default divider and have section headers:
But how can I draw the divider only on subitems and not the header item?
Any hints how I can do this? Or is there already a function inside the library to hide dividers on headers?
The text was updated successfully, but these errors were encountered: