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

PageSize.Fixed


Multiple pages in a viewport

Summary

Public constructors

Fixed(pageSize: Dp)
Cmn

Public functions

open Int
Density.calculateMainAxisPageSize(availableSpace: Int, pageSpacing: Int)

Based on availableSpace pick a size for the pages

Cmn

Public properties

Dp

A fixed size for pages

Cmn

Public constructors

Fixed

Fixed(pageSize: Dp)
Parameters
pageSize: Dp

A fixed size for pages

Public functions

calculateMainAxisPageSize

open fun Density.calculateMainAxisPageSize(availableSpace: Int, pageSpacing: Int): Int

Based on availableSpace pick a size for the pages

Parameters
availableSpace: Int

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

pageSpacing: Int

The amount of space used to separate pages.

Public properties

pageSize

val pageSizeDp

A fixed size for pages