Questions tagged [lazycolumn]
209 questions
25
votes
2 answers
Remove LazyColumn overscroll effect in Jetpack Compose
I am using version 1.1.0-alpha05 of Jetpack Compose and I wanted to know if there is a way to turn off the scrolling effect for LazyColumn like xml (android:overScrollMode="never")?

Ghasem
- 467
- 5
- 8
21
votes
2 answers
LazyColumn is slower than Column with vertical scroll
I have product cell which I want to display on the list, I've used LazyColumn but performance was terrible, I couldn't find why it is so slow. Then I've switched LazyColumn to Column and all of the sudden scrolling is super smooth
LazyColumn…

Maciej Przybylski
- 359
- 2
- 11
17
votes
2 answers
Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed
I am using ComposeView inside my recyclerview item layout to work with jetpack compose. I am getting weird issue when I open screen
Error
java.lang.IllegalStateException: Vertically scrollable component was measured with an infinity maximum height…

Kotlin Learner
- 3,995
- 6
- 47
- 127
16
votes
2 answers
Compose LazyColumn scrolling behavior inside of CoordinatorLayout via ComposeView interop
Problem - scrolling downward causes the bottom sheet to scroll rather than giving scroll priority to the LazyColumn (RecyclerView did not have this problem. It was wrapped by a NestedScrollView)
I've just introduced a Compose LazyColumn replacement…

jchristof
- 2,794
- 7
- 32
- 47
15
votes
2 answers
Keyboard hides TextField first time
I have create a simple example with six TextFields inside a LazyColumn, when you click the last TextField, the keyboard hides it, if you hide the keyboard and click again last TextField, works fine.
In the AndroidManifest I use "adjustPan"
…

DevAndroid
- 311
- 3
- 9
14
votes
5 answers
Fixed Grid inside LazyColumn in Jetpack Compose?
Currently in Jetpack Compose, this code throws an IllegalStateException because you cannot nest two vertically scrolling Composables:
@ExperimentalFoundationApi
@Composable
fun MyLazyColumn() {
LazyColumn {
item {
Text(text =…

Majesty
- 165
- 1
- 6
13
votes
5 answers
Jetpack Compose LazyColumn items scroll over stickyHeader and does not scroll to last item
I am struggling with the jetpack compose LazyColumn and the stickyHeader functionality. Basically the static view works well, but once I start scrolling, the items would go over the sticky headers, the scrolling starts a weird behaviour and the last…

Patrick Lang
- 501
- 6
- 9
13
votes
2 answers
HorizontalPager with LazyColumn inside another LazyColumn - Jetpack Compose
I want a similiar effect to TikToks profile screen.
On top is the ProfilPicture and username, below that is a stickyHeader with a TabRow (Posts, Drafts, Likes, Favorites) and below that is a HorizontalPager with the 4 Screens (Posts, Drafts, Likes,…

HavanaSun
- 446
- 3
- 12
- 39
11
votes
1 answer
Jetpack compose LazyColumn inside LazyCloumn
In my homepage I have a lazycolumn which one of items is Horizontal pager. Inside each horizontal pager there are some pages that I need to have lazyColumn inside them too. and the error is that you are not allowed to use nested scrolling in same…

Reza Faraji
- 435
- 1
- 7
- 14
10
votes
6 answers
Cannot use list in lazycolumn in kotlin
I am using LazyColumn in project. When I am passing the list it giving me error. Can someone guide me what is the error?
ResultScreen.kt
@Composable
fun ResultScreen(nearestResultList: List?) {
LazyColumn(
Modifier
…

Kotlin Learner
- 3,995
- 6
- 47
- 127
9
votes
4 answers
Scroll issue with LazyColumn inside BottomSheetDialogFragment
I use LazyColumn inside BottomSheetDialogFragment, but if to scroll LazyColumn list UP then Bottom Sheet Dialog scrolls instead of LazyColumn list. Seems like BottomSheetDialogFragment intercepts user touch input.
That's how it looks:
How to…

Mike
- 321
- 4
- 10
9
votes
2 answers
How to properly use Jetpack Compose inside BottomSheetDialogFragment?
For example, I have MyBottomSheetDialogFragment with Compose LazyColumn code in the application:
class MyBottomSheetDialogFragment : BottomSheetDialogFragment() {
override fun onCreateView(
inflater: LayoutInflater,
container:…

Mike
- 321
- 4
- 10
8
votes
1 answer
Jetpack Compose Lazy Column single selection
I'm getting data from the server and displaying it in the list, each item can be selected with one click to display the button, but I cannot close it, I can only open it.
This is item of list class
data class Task(
val deviceName: String,
…

卡尔斯路西法
- 83
- 5
7
votes
2 answers
Compose: What is the proper way to add to a (Lazy)Column enough bottom padding to avoid the FAB to cover its content?
The issue is the very similar to the one discussed here for Flutter, but happens in native Android using Jetpack Compose:
Is there a way to dynamically add bottom padding to a (Lazy)Column so its content is never obscured by the FAB?
The FAB is…

Roberto Leinardi
- 10,641
- 6
- 65
- 69
7
votes
2 answers
Android Compose: Difference between LazyColumn and Column with verticalScroll
I tried to look for reasons to use LazyColumn vs Column with verticalScroll. What is the difference between them? Like why would one be an ideal choice compare to other. They both make screen scrollable, isn't it? Would choosing one over the other…

oop
- 124
- 1
- 9