Package com.google.accompanist.pager

Functions

Link copied to clipboard
@Composable
fun HorizontalPagerIndicator(pagerState: PagerState, modifier: Modifier = Modifier, activeColor: Color = LocalContentColor.current.copy(alpha = LocalContentAlpha.current), inactiveColor: Color = activeColor.copy(ContentAlpha.disabled), indicatorWidth: Dp = 8.dp, indicatorHeight: Dp = indicatorWidth, spacing: Dp = indicatorWidth, indicatorShape: Shape = CircleShape)

An horizontally laid out indicator for a HorizontalPager or VerticalPager, representing the currently active page and total pages drawn using a Shape.

Link copied to clipboard
fun Modifier.pagerTabIndicatorOffset(pagerState: PagerState, tabPositions: List<TabPosition>): Modifier

This indicator syncs up a TabRow or ScrollableTabRow tab indicator with a HorizontalPager or VerticalPager. See the sample for a full demonstration.

Link copied to clipboard
@Composable
fun VerticalPagerIndicator(pagerState: PagerState, modifier: Modifier = Modifier, activeColor: Color = LocalContentColor.current.copy(alpha = LocalContentAlpha.current), inactiveColor: Color = activeColor.copy(ContentAlpha.disabled), indicatorHeight: Dp = 8.dp, indicatorWidth: Dp = indicatorHeight, spacing: Dp = indicatorHeight, indicatorShape: Shape = CircleShape)

An vertically laid out indicator for a VerticalPager or HorizontalPager, representing the currently active page and total pages drawn using a Shape.