public static interface RecyclerViewItemDecoration.Precondition
In general, preconditions may be used in order to perform more item specific decoration logic.
| Modifier and Type | Field and Description |
|---|---|
static RecyclerViewItemDecoration.Precondition |
EMPTY
Empty implementation (NULL object) which is always satisfied, that is, every item view will
be decorated when using this precondition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(View view,
RecyclerView parent,
RecyclerView.State state)
Checks whether this precondition is satisfied for the specified parameters.
|
@NonNull static final RecyclerViewItemDecoration.Precondition EMPTY
boolean check(@NonNull View view, @NonNull RecyclerView parent, @NonNull RecyclerView.State state)
view - The currently iterated item view.parent - The parent recycler view where is the specified item view presented.state - State of the parent recycler view.True if this precondition is satisfied and the item view can be decorated,
false otherwise.