Questions tagged [lazycolumn]
209 questions
0
votes
1 answer
LazyColumn recomposes all rows when updating one
I'm learning compose and as an exercise I'm trying to show a list of countdown timers.
One button will add a new timer to the list, then for every timer on that list a lazycolumn will show a row with a text displaying the time of the countdown and a…

Gui
- 31
- 2
0
votes
0 answers
sticky footer in Jetpack Compose
we already have stickyHeader api available in jetpack compose. but how one can achieve something like stickyFooter?

mrzbn
- 497
- 1
- 3
- 15
0
votes
0 answers
How can I use a LazyVerticalGrid with items created from an enum inside a Lazy Column
I'm using a LazyGridView inside a LazyColumn as I have content that would exceed the screen height and hence would need scrolling through.
However, doing this gives me an error Nesting scrollable in the same direction layouts like LazyColumn and…

Vaz
- 309
- 2
- 15
0
votes
0 answers
In compose lazy column, why there is no default option to show scrollbar?
In compose ui, lazy column or row, there is no default option to show scrollbar like in xml(android:scrollbars="vertical").

Karthik
- 1
0
votes
0 answers
Jetpack Compose Lazy Column with Lag
I'm trying to custom a Lazy Column to show it like a Wheel of numbers. Depending how far is the item from center I apply opacity, size and rotation to it. When I only apply the opacity, there is no problem, but if I add the size for example, the…

Alex Diaz Llagostera
- 25
- 5
0
votes
1 answer
Card in a lazy column cannot be dragged outside of its parent view
YO!
I am making a clone of Trello in which the BoardScreen displays a row of Lists, each list contains a List of cards.
I want to make the card draggable across the lists so that a card remove from one list and gets saved into another.
I have tried…

zaid khan
- 825
- 3
- 11
0
votes
1 answer
Lazy column not max height
I have an overall composable with a title composable with text -
beneath a lazycolumn composable and beneath again a composable with a button
Column(horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.fillMaxWidth()
…

VFarkas2023
- 295
- 1
- 1
- 8
0
votes
0 answers
Customise scrolling behaviour of LazyColumn in Compose
How can we scroll one item at a time with each scroll in LazyColumn?
I have achieved this functionality by using VerticalPager.

Muhammad Umair Zahid
- 581
- 2
- 12
0
votes
1 answer
About LazyColumn.I have requested new data, but the UI has not been updated. Only a swipe will render the new data
val lazyListState = rememberLazyListState()
val isScrollToBottom = remember(lazyListState) {
derivedStateOf {
val index = lazyListState.layoutInfo.visibleItemsInfo.lastOrNull()?.index
val count =…

有朋自远方来
- 41
- 2
0
votes
0 answers
The error occurs when using Android Compose LazyVerticalStaggeredGrid within a scrollable layout
I want to enable scrolling for the entire MyScreen, but when I add verticalScroll to the Column, an error occurs.
@OptIn(ExperimentalFoundationApi::class)
@Composable
fun MyScreen() {
Column(
modifier =…

ihsusta
- 1
0
votes
0 answers
LazyColumn Card Click with multiple Items
i want to organize passing arguments with lazycolumn with different Item. My lazycolumn is loading different item cards. For example:
if id is 1 then CardItem1 is loaded,
if id is 2 then CardItem2 is loaded ect.
In order to make all item cards…

George Kusenkov
- 35
- 5
0
votes
0 answers
Why jetpack compose room offline pagination not loading next page?
Dao class
@Dao
interface ShlokaDao {
@Query("SELECT * FROM shlokas_table ORDER BY _Id ASC LIMIT :limit OFFSET :offset ")
suspend fun getPagedShlokasList(limit: Int, offset: Int): List
}
Paging DataSource
class…

Premjit
- 37
- 8
0
votes
0 answers
How to show Animation for a item of LazyColumn in Compose?
For example,I use a LazyColumn for displaying chatroom contents below:
A-I like red tea!
B-Yes,it's very nice! someone joined the room As you can see,"someone joined the room" is part of this LazyColumn,but it will always show at the bottom,new…
B-Yes,it's very nice! someone joined the room As you can see,"someone joined the room" is part of this LazyColumn,but it will always show at the bottom,new…

Iridescentangle
- 1
- 2
0
votes
1 answer
App crashes when using view model in jetpack compose
@HiltViewModel
class TaskViewModel @Inject constructor(
private val repository: AppRepository
) : ViewModel() {
fun getLiveData(date: LocalDate): LiveData
- > {
...
}
}
My screen:
@Composable
fun TaskScreen(modifier:…

DeKekem
- 589
- 10
- 20
0
votes
1 answer
Jet Pack Compose Mutable List Updating With Mutable State list Problem
//declared in activity
val statebilledproducts = viewModel.listBilledProducts
//declared in viewmodel
class OrderViewModel : ViewModel() {
private val _listBilledProducts = mutableStateListOf()
val listBilledProducts…