Horizontal Pager Indicator
@Composable
Content copied to clipboard
An horizontally laid out indicator for a HorizontalPager or VerticalPager, representing the currently active page and total pages drawn using a Shape.
This element allows the setting of the indicatorShape, which defines how the indicator is visually represented.
Samples
com.google.accompanist.sample.pager.HorizontalPagerIndicatorSampleParameters
pager State
the state object of your Pager to be used to observe the list's state.
modifier
the modifier to apply to this layout.
active Color
the color of the active Page indicator
inactive Color
the color of page indicators that are inactive. This defaults to activeColor with the alpha component set to the ContentAlpha.disabled.
indicator Width
the width of each indicator in Dp.
indicator Height
the height of each indicator in Dp. Defaults to indicatorWidth.
spacing
the spacing between each indicator in Dp.
indicator Shape
the shape representing each indicator. This defaults to CircleShape.