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...
Soul asked 11/4, 2022 at 18:7
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...
Disgust asked 16/2, 2022 at 18:30
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...
Pericranium asked 2/2, 2022 at 5:54
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...
Reginareginald asked 25/3, 2021 at 5:56
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...
Tara asked 18/1, 2022 at 12:55
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 ...
Vaudois asked 20/8, 2021 at 11:55
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...
Pyretic asked 7/12, 2021 at 14:27
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:...
Brolly asked 5/4, 2021 at 8:5
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...
Clemens asked 28/7, 2021 at 19:33
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...
Deltoro asked 17/4, 2021 at 15:38
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...
Audio asked 9/4, 2021 at 17:35
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...
Orianna asked 22/12, 2020 at 20:15
7
Solved
Is there any special way to create recyclerView in Compose Jetpack? Or it is the same as usual?
androidandroid-recyclerviewandroid-jetpack-composeandroid-jetpack-compose-listandroid-compose-lazyfor
Dilemma asked 4/11, 2019 at 10:41
© 2022 - 2024 — McMap. All rights reserved.