android-jetpack-compose-list Questions

5

Solved

For a LazyRow, or Column, how to I know whether the user has scrolled left or right ( or up or... you know). We do not need callbacks in compose for stuff like that, since mutableStateOf objects al...

6

I've read through similar topics but I couldn't find satisfactory result: What is the equivalent of NestedScrollView + RecyclerView or Nested RecyclerView (Recycler inside another recycler) in Jet...

8

Solved

Is there any way to programmatically scroll LazyColumn to some item in the list? I thought that it can be done by hoisting the LazyColumn argument state: LazyListState = rememberLazyListState() but...

3

I think the title says it all. LazyPagingItems constructor is internal. I can't pass LazyPagingItems as parameter in Preview Composable, let alone passing sample data. But I want to show preview of...
Goddaughter asked 29/7, 2021 at 6:48

10

Solved

How to create Gridview in Jetpack compose without using recycler view or android.widget.gridview ?

3

Solved

Can someone explain me what's the main purpose of the 'key' parameter inside items/itemsIndexed function of LazyListScope? What do we get or don't get if we specify that parameter? I'm not sure tha...

4

Solved

I'm trying to implement a list with a button on its bottom, like the following: Since I don't know how many items I would have on the list, I'm using a LazyColumn. The button on the bottom, should...

2

Is there a way to create looped Scroll Wheel that looks like scroll wheel date Pickers on iOS? Looked everywhere for the answer but didn't find any.

5

How can I calculate the position of the selected item in a LazyRow and use it for centering the item on the screen? The items will have various sizes depending on their content. If I go with lazyLi...

3

Solved

When I use collectAsState(), the collect {} is triggered only when a new list is passed, not when it is modified and emitted. View Model @HiltViewModel class MyViewModel @Inject constructor() : Vie...

1

So I am bit of in a pickle now. The Begining I have list of countries and I want to allow the user to pick any of them by showing a drop a down menu, and earlier no jetpack compose way, I had a an ...

3

I'm trying to implement simple sort with items that are in a state. This will work perfectly, only problem is that the animation is now gone, because it doesn't have a key. LazyColumn( state = lis...

4

Solved

In EpoxyRecyclerView with Horizontal LinearLayout there is a Snap to center feature which works like, If i scroll the list with good speed, it keeps on scrolling until it slows down and rests with ...

7

I want to check if the list is scrolled to end of the list. How ever the lazyListState does not provide this property Why do I need this? I want to show a FAB for "scrolling to end" of th...

2

Solved

How can I create a custom Arrangement for LazyRow to add additional spacing at beginning and end, but have even spacing in between? Start|< more space> Item 1 Item 2 Last Item |End object Cus...

3

Solved

There is something similar like swiperefreshlayout to pull to refresh in the jetpack compose

3

Solved

I have a problem with TextField that is hiding under the keyboard, I've found the answers for the similar question here, but they are not helping me in my case. I have a LazyColumn with the list of...

1

Can I make a item on LazyColumn occupy only the remaining height available? I'm I tried to use fillParentMaxSize but it make the item as the same size of the LazyColumn, so i can't put another item...

3

Solved

Here on the right , I have a list of items in a composable , Every item is inside a row , All the items are inside a column All the children of the are getting clipped to fit the screen which I don...
Whiffle asked 8/7, 2021 at 6:11

4

Solved

I am trying to implement redux with Jetpack compose. The scenario looks like this: I have a list view where I need to show data, in composable function. @Composable fun CreateListView(text: Strin...

4

In JetpackCompose, we can use LazyColumnFor as RecyclerView. In RecyclerView, to have a proper margin/padding between items, we need to use ItemDecoration, as per this article Like below class Marg...

1

I'm trying to build a simple chat screen, with a header, a footer (text field) and the messages part which is a lazycolumn. I've seen many people using such methods like the ones below: (fill paren...

2

For example, I have MyBottomSheetDialogFragment with Compose LazyColumn code in the application: class MyBottomSheetDialogFragment : BottomSheetDialogFragment() { override fun onCreateView( infla...

5

I'm having some trouble figuring out if my problem is a Jetpack Compose missing feature or if I can't find how it is done. Let's say I want to make this page It needs to be scrollable, because the...

1

Solved

I am wrapping an AdManagerAdView in an AndroidView so I can use it in Jetpack Compose. The image fails to load when I use it in a LazyColumn AND the AdManagerAdView tries to load the image before t...

© 2022 - 2024 — McMap. All rights reserved.