Chris Johnson
09/07/2021, 11:18 PMtoolbarMaxHeight
) and then adding a spacer of height toolbarMaxHeight
so it gives the content space to scroll upwards... but I'm ending up with a blank screen. Even though if I look in layout inspector it shows everything is where it's supposed to be. Is there a way to provide space to a composable so that it can be placed above the top of your screen and then allowed to scroll upwards? Code in commentsChris Johnson
09/07/2021, 11:20 PMColumn(modifier = Modifier
.alpha(headerTransitionProgress)
.offset(y = -(headerMaxHeight))
.verticalScroll(listState)) {
Spacer(modifier = Modifier.height(headerMaxHeight))
toolbarContent()
}
My goal is to have the toolbarContent()
scroll up and down when my screen content is scrolled. (Basically the existing implementation of CollapsingToolbarLayout)
HeaderMaxHeight
is the maxHeight the toolbar can be.