-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
After the Activity recreated (eg. daynight theme changed, screen orientation change), even if content scrolling occurs, the value of CollapsingToolbarState.progress will not change and is fixed at 1.0.
demo code:
val state = rememberCollapsingToolbarState()
CollapsingToolbarScaffold(
state = rememberCollapsingToolbarScaffoldState(state),
scrollStrategy = ScrollStrategy.ExitUntilCollapsed,
modifier = Modifier.fillMaxSize(),
toolbar = {
Spacer(
modifier = Modifier.fillMaxWidth()
.height(160.dp)
.background(Color.Yellow)
)
Spacer(modifier = Modifier.height(10.dp).pin())
}
) {
LazyColumn(modifier = Modifier.fillMaxSize()) {
item { Text(text = "${state.progress}") }
items(1000) {
Text(it.toString())
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels