lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

belongs to Maven artifact androidx.car:car:1.0.0-alpha3

PagedListView.DividerVisibilityManager

public static interface PagedListView.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 shouldHideDivider(int position)

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

Public methods

shouldHideDivider

public abstract boolean shouldHideDivider (int position)

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

Parameters
position int: item position inside the adapter.

Returns
boolean true if divider is to be hidden, false if divider should be shown.