第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧

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 getShowDivider(int position)

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

Public methods

getShowDivider

public abstract boolean getShowDivider (int position)

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

Parameters
position int: item position inside the adapter.

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