recycler-view-divider / com.fondesa.recyclerviewdivider

Package com.fondesa.recyclerviewdivider

Types

BaseDividerItemDecoration

abstract class BaseDividerItemDecoration : ItemDecoration

Base implementation of RecyclerView.ItemDecoration which provides some utilities methods. It also provides different implementations of getItemOffsets and onDraw.

BuildConfig

class BuildConfig
class BuildConfig

Cell

class Cell

Identifies the item of a line. In a vertical grid, the cell can take the space of multiple columns. The number of columns this cell take is defined with spanSize. In an horizontal grid, the cell can take the space of multiple rows. The number of rows this cell take is defined with spanSize.

Divider

data class Divider

Identifies a divider originating from a corner of a cell and going to an adjacent corner. The coordinates:

DividerBuilder

class DividerBuilder

Builds a divider for a LinearLayoutManager or its subclasses (e.g. GridLayoutManager). The following properties of a divider can be configured:

Grid

data class Grid

Identifies the grid layout of a LinearLayoutManager/GridLayoutManager. The grid pre-calculates all the rows and columns placement of a layout manager. A vertical grid is a grid shown in a layout manager with vertical orientation. An horizontal grid is a grid shown in a layout manager with horizontal orientation.

LayoutDirection

data class LayoutDirection

Identifies the direction of a RecyclerView's layout.

Line

class Line

Identifies the row in a vertical grid or the column in an horizontal grid. A single cell can be larger than a single column for a vertical grid or than a single row for an horizontal grid (Cell.spanSize).

Orientation

enum class Orientation

Identifies the orientation of a component (e.g. a grid, a divider, etc...).

RecyclerViewDivider

class RecyclerViewDivider : ItemDecoration

Used to draw a divider between RecyclerView's elements.

Side

enum class Side

Identifies the sides of a rectangle.

StaggeredDividerBuilder

class StaggeredDividerBuilder

Builds a divider for a StaggeredGridLayoutManager or its subclasses. The following properties of a divider can be configured:

Exceptions

IllegalLayoutManagerException

class IllegalLayoutManagerException : RuntimeException

A RuntimeException thrown when the RecyclerView.ItemDecoration doesn't support the given RecyclerView.LayoutManager.

Type Aliases

Sides

typealias Sides = EnumSet<Side>

Identifies a set of Side, internally implemented with an EnumSet.

Extensions for External Classes

android.content.Context

androidx.recyclerview.widget.RecyclerView