HorizontalPagerIndicator
A horizontally laid out indicator for a androidx.compose.foundation.pager.HorizontalPager or androidx.compose.foundation.pager.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.
Parameters
A androidx.compose.foundation.pager.PagerState object of your androidx.compose.foundation.pager.VerticalPager or androidx.compose.foundation.pager.HorizontalPagerto be used to observe the list's state.
the modifier to apply to this layout.
the size of indicators should be displayed. If you are implementing a looping pager with a much larger pageCount than indicators should displayed, e.g. Int.MAX_VALUE, specify you real size in this param.
describe how to get the position of active indicator by the giving page from androidx.compose.foundation.pager.PagerState.currentPage.
the color of the active Page indicator
the color of page indicators that are inactive. This defaults to activeColor with the alpha component set to the ContentAlpha.disabled.
the width of each indicator in Dp.
the height of each indicator in Dp. Defaults to indicatorWidth.
the spacing between each indicator in Dp.
the shape representing each indicator. This defaults to CircleShape.