You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Column {
var pageCount by remember { mutableStateOf(5) }
val pagerState = rememberPagerState()
HorizontalPager(
modifier =Modifier.padding(top =24.dp),
pageCount = pageCount,
contentPadding =PaddingValues(horizontal =64.dp),
pageSpacing =24.dp,
state = pagerState
) {
PagePlaceholderItem()
}
DotsIndicator(
dotCount = pageCount,
type =ShiftIndicatorType(dotsGraphic =DotGraphic(color =MaterialTheme.colorScheme.primary)),
pagerState = pagerState
)
}
this is how we can produce the dots indicator in jetpack compose using ShiftIndicatorType, but why we can't customize the selected dots (e.g for its color, shape, size) like XML did on ShfitIndicatoryType?
The text was updated successfully, but these errors were encountered:
this is how we can produce the dots indicator in jetpack compose using ShiftIndicatorType, but why we can't customize the selected dots (e.g for its color, shape, size) like XML did on ShfitIndicatoryType?
The text was updated successfully, but these errors were encountered: