Questions tagged [lazycolumn]
209 questions
2
votes
2 answers
LazyColumn notify about modification of item
I have a composable function that looks something like this:
@Composable
fun listScreen(context: Context, owner: ViewModelStoreOwner) {
val repository = xRepository(getAppDatabase(context).xDao()
val listData by…

JustSightseeing
- 1,460
- 3
- 17
- 37
1
vote
2 answers
Migrate old code of paging3 with lazyColumn
In this demo app, I've implemented paging3 with jetpack compose, but in ListContent I got this error after updating the all dependencies to the latest version, I try to pass items and the key as unsplashImage.id it's look the lazyColumn in newer…

Dr Mido
- 2,414
- 4
- 32
- 72
1
vote
1 answer
Jetpack Compose. Does LazyColumn have buffer?
Does LazyColumn have a buffer. If yes, how can I set it up?
The last element of the list takes a long time to load due to the video. Can I put it in a buffer, or is there another way to keep it from loading every time? How can I increase the number…

Mikalai Hancharou
- 11
- 1
1
vote
1 answer
LazyColumn dont displaying
I want to make a list of bots that I get from my database in firebase, but I don't know why the text() of BotList() are not shown on the screen, although the implementation seems correct, thank you very much.
class DiscoverActivity :…

Santi machin
- 13
- 2
1
vote
0 answers
How to center a composable in the middle of the visible part of a LazyColumn item
I have a specific use case where I'm dealing with a LazyColumn containing swipeable items of varying heights. My objective is to center the background of the swipeable composable on the visible part of the currently swiped item. This becomes…

Roberto Leinardi
- 10,641
- 6
- 65
- 69
1
vote
1 answer
Jetpack compose how to make buttons after LazyColumn
This code makes buttons always after list rows.
but how to make such implementation:
then small list, button on the bottom of the screen,
but then list large and larger then screen size, button on the and of the list
LazyColumn(
state…

Slava
- 443
- 4
- 12
1
vote
1 answer
How to get firstvisibleItemIndex in detectTapGestures
I have a lazycolumn and use detectTapGestures to get the onclick event
I would like to get the current firstvisibleItemIndex of the lazycolumn when I click
on a Lazycolumn item
Tried different solutions with state.firstVisibleItemIndex but none is…

VFarkas2023
- 295
- 1
- 1
- 8
1
vote
0 answers
How to listen for sliding up or down about LazyColumn
Box(modifier = Modifier.pullRefresh(pullRefreshState)) {
Column() {
LazyColumn(
modifier = Modifier
.fillMaxSize()
.background(colorResource(id =…

有朋自远方来
- 41
- 2
1
vote
1 answer
How to get rid of recomposing LazyColumn elements when using padding
Each time the TopAppBar collapses and expands, all of the LazyColumn elements are recomposed multiple times.
@OptIn(ExperimentalMaterial3Api::class, ExperimentalAnimationApi::class)
@Composable
fun RoomsScreen(
viewModel: ScreenViewModel =…

Michael
- 11
- 2
1
vote
2 answers
How to check at pointerinput if longpress ended?
how can I check when the gesture onlongpress ended?
Anything like gestureUp or gestureEnd?
Card(colors = CardDefaults.cardColors(
containerColor = Color(0xFF7DCEA0), Color.Black
),
elevation =…

VFarkas2023
- 295
- 1
- 1
- 8
1
vote
1 answer
Convert a drawable object into one of the "Image" function types in Kotlin
I'm building a "Sitcom" app in android studio using lazy columns.
I want to displays rows of sitcom characters as follows - characters image and next to it his name.
I downloaded the jpg-s of all the characters and made a map ((character's name) =…

Valerie1997
- 11
- 2
1
vote
1 answer
Android Studio Response data Error using Retrofit and LazyColumn composable
If I use a custom calendar to select a day of the week, I want to communicate with the server and receive a response from the data stored on that day of the week to associate it with the LazyColumn Composables.
I've created the TodoItem and…

박종준
- 125
- 1
- 2
- 10
1
vote
1 answer
Using LazyHorizontalGrid inside LazyColumn
I try to use LazyHorizontalGrid with 2 fixed rows inside a LazyColumn. But then app crashes:
IllegalArgumentException: LazyHorizontalGrid's height should be bound by parent
This is surprising, as I can use LazyRow inside a LazyColumn without any…

mrzbn
- 497
- 1
- 3
- 15
1
vote
1 answer
How to make clickable text in Lazy Column
I am trying to build a basic hymn book application.
So I have the top app bar and. A lazy column containing the list of songs.
@Composable
fun Songs(){
val listofsongs = listOfSongs()
val getALlData = listofsongs.getAllData()
…

Opeoluwa-Muritala
- 11
- 6
1
vote
1 answer
Jetpack Compose onClick { ... } Toast not showing
I am trying to learn jetpack compose and this is the code I am trying out
My Activity
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
…

1234567
- 2,226
- 4
- 24
- 69