DividerItemDecoration
DividerItemDecoration is a RecyclerView.ItemDecoration that can be used as a divider between items of a LinearLayoutManager. It supports both HORIZONTAL and VERTICAL orientations.
mDividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(),
mLayoutManager.getOrientation());
recyclerView.addItemDecoration(mDividerItemDecoration);
Content copied to clipboard
Constructors
Link copied to clipboard
Creates a divider RecyclerView.ItemDecoration that can be used with a LinearLayoutManager.
Functions
Link copied to clipboard
Link copied to clipboard
Retrieve any offsets for the given item.
Link copied to clipboard
Draw any appropriate decorations into the Canvas supplied to the RecyclerView.
Link copied to clipboard
Sets the Drawable for this divider.
Link copied to clipboard
Sets the orientation for this divider.