Source set: Common
public interface PageSize
This is used to determine how Pages are laid out in Pager. By changing the size of the pages one can change how many pages are shown.
Please refer to the sample to learn how to use this API.
Functions
calculateMainAxisPageSize
Source set: Common
public fun Density.calculateMainAxisPageSize(availableSpace: Int, pageSpacing: Int): Int
Based on availableSpace pick a size for the pages
Parameters
| availableSpace | The amount of space in pixels the pages in this Pager can use. |
| pageSpacing | The amount of space in pixels used to separate pages. |
Members
Fill
Source set: Common
public object Fill : PageSize
Pages take up the whole Pager size.
Fixed
Source set: Common
public class Fixed(public val pageSize: Dp) : PageSize
Multiple pages in a viewport
Parameters
| pageSize | A fixed size for pages |