{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PageSize.Fill

@ExperimentalFoundationApi
public static class PageSize.Fill implements PageSize


Pages take up the whole Pager size.

Summary

Public fields

static @NonNull PageSize.Fill

Public methods

int
calculateMainAxisPageSize(
    @NonNull Density receiver,
    int availableSpace,
    int pageSpacing
)

Based on availableSpace pick a size for the pages

Public fields

INSTANCE

public static @NonNull PageSize.Fill INSTANCE

Public methods

calculateMainAxisPageSize

public int calculateMainAxisPageSize(
    @NonNull Density receiver,
    int availableSpace,
    int pageSpacing
)

Based on availableSpace pick a size for the pages

Parameters
int availableSpace

The amount of space the pages in this Pager can use.

int pageSpacing

The amount of space used to separate pages.