how can I make an activity scrollable in compose?
# compose
b
how can I make an activity scrollable in compose?
v
what do you mean by activity?
b
the screen itself.
I want the user to scroll down to click a button but when I run the application does not move.
Should I use
LazyColumn
?
v
use
LazyColumn
and inside it use
item{}
for single item and
items{}
for list
b
I just want to find another way to do it instead of LazyColumn as it’s not that long.
v
yeah u can use
Modifier.verticalScroll(scrollstate)
there is something like this, I don't correctly remember but IDE will give hint, try it out
v
and for the
scrollstate
, you can use like
val scrollstate = rememberScrollState
and pass i
b
Amazing. Thanks @Vivek Sharma & @Stylianos Gakis