DividerVisibilityManager

interface DividerVisibilityManager
androidx.car.widget.PagedListView.DividerVisibilityManager

Interface for controlling visibility of item dividers for individual items based on the item's position.

NOTE: interface takes effect only when dividers are enabled.

Summary

Public methods
abstract Boolean
getShowDivider(position: Int)

Given an item position, returns whether the divider below that item should be shown.

Public methods

getShowDivider

abstract fun getShowDivider(position: Int): Boolean

Given an item position, returns whether the divider below that item should be shown.

Parameters
position Int: item position inside the adapter.
Return
Boolean: true if divider is to be shown; false if hidden.