287 questions
1
vote
0
answers
49
views
Android TV : LazyColumn and focus
I started a new app dedicated to Android TV platform.
I try to display an Activity containing 2 or 3 columns using LazyColumn components. Each column are displayed correctly with the data in my lists....
0
votes
1
answer
75
views
How do I forget or reset lazyListState in Jetpack Compose?
I have issue that I cannot resolve - forgetting list state. I have single LazyColumn which has some items and I also have list of categories users can choose from eg. All, Favourite, Subscribed etc.
...
3
votes
1
answer
134
views
LazyColumn only updates data from Room after scrolling
After navigating to the screen, the data is retrieved through ViewModel and Room, but LazyColumn won't update, only after scrolling.
I'm using a data class to create a list of sections called ...
1
vote
1
answer
132
views
LazyColumn + TextField (not in bottomBar) with imePadding: extra padding when soft keyboard is opened
I am struggling around with this extra padding and provided here a small sample code.
What is causing the extra padding added between the text field and the software keyboard (when opened)?
Expected ...
1
vote
2
answers
88
views
Android how can I fill the remaining space above a specific item in a Jetpack Compose LazyColumn? [duplicate]
I have a LazyColumn in Jetpack Compose and I want one of the items (let’s call it a “highlighted block”) to always sit at the bottom of the visible viewport, even when the list is short. In a regular ...
0
votes
2
answers
145
views
Can't nest a LazyColumn inside a HorizontalPager
I need to nest a lazycolumn inside a horizontalpager, and I need the lazycolumn to have a verticalScroll(scrollState) to remember the current scroll between screen/orientation changes.
I created this ...
0
votes
0
answers
125
views
Video in LazyColumn
I am working on an android application but I am not very familiar with jetpack compose.
I want to display videos as items in a lazy column but some videos don't load and just display a black view or ...
2
votes
1
answer
364
views
How Can I Call Another Composable within an Item in a Lazy Column with Animation?
I'm still learning compose/kotlin and have come up with a problem that seems very common, but I can't find a solution.
I have a LazyColumn with animation--that works great for making additions and ...
0
votes
1
answer
323
views
Custom focus on item of lazyrow androidtv jetpack compose
so i have a jetpack compose tv project and on the home screen i have a tvlazycolumn and inside it i have item{} having multiple of these :
if (resultItem.thumbnailType?.name.equals(
...
-1
votes
2
answers
129
views
How to set a drawable object instance as a background of a LazyColumn?
I mean a Drawable generated dynamically, not a file from res/drawable.
I tried setting it as a background of the modifier, but it doesn't accept a Drawable instance object. In Java, it was done like ...
2
votes
1
answer
571
views
How to fix crash with "Vertically scrollable component was measured with an infinity maximum height constraints"?
When I'm trying to use Lazy elements with my data list application are crashing. This crash has next scenario:
Calling NavHost for screen with Lazy provokes little freez and restart app.
After ...
3
votes
1
answer
2k
views
Expand and collapse LazyColumn items with animation in Jetpack Compose
I am using stickyHeader with LazyColumn, and I want to expand and collapse the items under each header when the header is clicked, with smooth animations. I've implemented this behavior using ...
1
vote
1
answer
273
views
Jetpack LazyColumn verticalArrangement Top not grouping sparse items at top of column
I have an app using LazyColumn. On my device, when there are insufficient items to fill the column, it's vertically spacing them equally with large gaps in between, even though I've specified ...
1
vote
0
answers
183
views
Custom Scroll Behavior for Overlapping. LazyColumn Jetpack Compose
I need to implement custom scrolling behavior involving a LazyColumn on a page. I'll break down the explanation into three stages for clarity. Simplified, it looks like this:
1) Initial Position: The ...
1
vote
1
answer
105
views
get data from room and IllegalArgumentException: Key "968031" was already used
In my application I get the list of films by api and can add them to the list of favourites which is stored in the database room. So on the screen with the list of favourite films when I try to delete ...
1
vote
0
answers
79
views
nestedScroll modifier not working as expected in compose
I was trying to achieve a lazy column with custom behavior. When the user pulls the lazy column after they reached the limits, I would show a refresh indicator by using the offset.
The problem is, ...
6
votes
0
answers
446
views
Lazy Column with Scrollable Gradient background in Jetpack Compose
I'm working on a Jetpack Compose app having a Scaffold layout. My layout includes a title, a tab bar, and a LazyColumn. I want to create a gradient background that scrolls with the LazyColumn content ...
2
votes
0
answers
66
views
How to apply AnimatedVisibility and animateItemPlacement together?
I am using androidx.compose:compose-bom:2024.06.00. The items of a LazyColumn are animated at the launch of the screen:
@Composable
fun SampleList(samples: List<Sample>) {
val state = ...
-1
votes
1
answer
138
views
Box lose shape while scrolling LazyRow
I have a problem, when i scroll my LazyRow, boxes which going out from it lose their shape. I am using a modifier.clip(RoundedCornerShape(20.dp)) and if item is visible in row it clips, but if not it ...
0
votes
1
answer
392
views
Jetpack Compose: LazyRow Scroll Percentage?
I am trying to implement a scroll indicator on LazyRow. Ideally it would transition smoothly while scrolling, but I read that it is not possible because we only have access to the ...
2
votes
0
answers
100
views
jetpack compose - shared scrollstates with lazyrow and columns
Im able to get my lazyrows on the right to vertically scroll with my lazycolumn on the left. The lazyrow will vertically scroll individually but when i try to get only the multiple lazyrows to scroll ...
1
vote
2
answers
954
views
Display different composable item in Multi type Lazy Column after every 5th Item in Jetpack Compose
I have two lists, number list of length 200 and and alphabet list of length 26. Both lists have different composable items to show them i.e NumberItem() and AlphabetItem().
I want AlphabetItem() to be ...
0
votes
1
answer
2k
views
Jetpack compose - load more data or pagination, LazyVerticalStaggeredGrid/LazyColumn disappears
I am implementing a pagination or load more data, whenever LazyVerticalStaggeredGrid/LazyColumn reaches the end/last item. Everything works as expected however, when the data load more function, the ...
0
votes
0
answers
62
views
Android LazyColumn OutOfMemoryError
Android LazyColumn OutOfMemoryError
To display all font styles in the font folder(res/font) with LazyColumn:
font folder(res/font) has many ttf file.
@Composable
fun TextTtfLearn(){
val context: ...
1
vote
1
answer
46
views
Kotlin/Compose: Why won't my lazyColumn scroll?
I stuffed it full of things, but can't get to the ones past the screen. Been watching youtube videos, asking chatGpt, etc, and can't figure it out. New to coding; sorry if this is an inefficient ...