PagerView
fun PagerView(viewEntity: PagerViewEntity, modifier: Modifier = Modifier, itemSpacing: Dp = 0.dp, contentPadding: PaddingValues = PaddingValues(0.dp), verticalAlignment: Alignment.Vertical = Alignment.Top)
A pager view is a component that displays a set of views in a horizontal view pager with scrollable tabs.
Parameters
viewEntity
The pager view entity.
modifier
The modifier to be applied to the layout.
itemSpacing
The spacing between items.
contentPadding
The padding to be applied to the content.
verticalAlignment
The vertical alignment of the content.
fun PagerView(viewEntity: PagerViewEntity, modifier: Modifier = Modifier, itemSpacing: Dp = 0.dp, scrollable: Boolean = true, coroutineScope: CoroutineScope, pagerState: PagerState = rememberPagerState(pageCount = { viewEntity.items.size }), contentPadding: PaddingValues = PaddingValues(0.dp), verticalAlignment: Alignment.Vertical = Alignment.Top)
A pager view is a component that displays a set of views in a horizontal view pager with tabs. Tabs are scrollable if scrollable is set to true.
Parameters
viewEntity
The pager view entity.
modifier
The modifier to be applied to the layout.
itemSpacing
The spacing between items, by default 0.
scrollable
Whether the tabs should be scrollable.
coroutineScope
The coroutine scope to be used for scrolling.
pagerState
The pager state to be used for scrolling.
contentPadding
The padding to be applied to the content.
verticalAlignment
The vertical alignment of the content.