android-jetpack-compose-list Questions

2

Solved

I want to obtain a LazyRow that looks like this: |--aaa-b|bb-cccc|-dd... ...|w--x---| |-------| is one screen width The size of the elements varies but they have a fixed spacing between them. I tho...
Chrestomathy asked 12/4, 2022 at 7:49

2

Solved

I am wondering if it is possible to have a list where you can scroll through - and all the items have a simple view which is shown by default and then a more detailed view which is shown when the i...

1

Solved

In Jetpack Compose, if I have a MutableState variable, I can expose it's State as "read-only" value to other classes as State<String>, just like: private val _title = mutableStateOf...

1

Solved

I need to check when a certain LazyColumn item comes into view, and once it does, make a callback to onItemWithKeyViewed() only once to notify that this item has been viewed. My attempt: @Composabl...

2

Solved

I want to select one item of my LazyColumn and change the textcolor. How is it possible to identify which item is selected? Code: val items = listOf(Pair("A", 1), Pair("AA", 144...

1

Solved

How to access the current item's index of LazyColumn in Jetpack Compose. LazyColumn { items(viewModel.list) { item -> // Here I want to get the index of the item Timber.d("item - $item&q...

3

Solved

I want to create a text field inside a todo list where when the user presses backspace on an empty text field , it removes itself from the list , very simple to do as you can see ! Jetpack Compose ...

0

If you focus a TextField near the bottom of the screen, keyboard appears for a moment and then immediately hides. But if you focus some TextField from above, keyboard opens as usual and you can scr...

1

I am trying to work with the compose lazy column, i want each item of my lazy column to have the maximum height , I tried the below code but it is not giving the expected result Code val itemsList:...

1

Solved

I am building a chat app with firebase and I need to align the chat bubbles in the end when I write the message and in the start when I receive, like in whatsapp. If I use the horizontalArrangement...

2

Solved

I have a LazyColumn that looks like this: LazyColumn ( verticalArrangement = Arrangement.spacedBy(12.dp) ) { items(bookList) { book -> InProgressBookItem(book = book) } } How can I add a li...

1

Solved

I am trying to run a simple LazyColumn Object, but am unable to run it without this weird error. Here is my code: @Composable fun Test(){ LazyColumn() { Text(text = "Placeholder", font...

2

Solved

As of Jetpack Compose 1.0.0-alpha09 LazyColumn, LazyColumnForIndexed, and row counterparts are deprecated. How is LazyColumn used, where, why, and how should i use rememberLazyListState? If you can...

7

Solved

Is there any special way to create recyclerView in Compose Jetpack? Or it is the same as usual?

© 2022 - 2024 — McMap. All rights reserved.