on-internet
← Community

When combining LazyColumn and LazyRow, I want to keep the LazyRow above hidden at all times

Stack Overflow ·

When I set a LazyRow inside a LazyColumn, I was able to hide the LazyRow on the first row by scrolling to the list on the second row and focusing on it, but when I scroll horizontally, the LazyRow that was hidden reappears. When I scroll horizontally, the `LaunchedEffect` with `focusedIndex` set isn't being called, and I don't understand why the scroll position automatically resets. focusedIndex = remember {mutableStateOf<Int?>(null)} LazyColumn( state = listState, modifier = Modifier .fillMaxSize() .weight(1f), contentPadding = PaddingValues( top = 0.dp, bottom = 0.dp ), ) { itemsIndexed(data

Comments

Sign in or sign up to comment and upvote.

No comments yet.