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...
Isocrates asked 10/8, 2021 at 13:37
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...
Hillie asked 17/5, 2022 at 9:3
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...
Fetter asked 29/11, 2020 at 21:18
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 ?
Buggery asked 28/10, 2019 at 18:32
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...
Ebersole asked 15/8, 2021 at 9:13
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...
Denisse asked 27/8, 2021 at 22:17
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.
Bouffard asked 27/10, 2021 at 7:27
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...
Aesthetics asked 26/10, 2022 at 8:53
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...
Emphasis asked 27/3, 2022 at 2:51
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 ...
Bimolecular asked 25/4, 2022 at 14:34
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...
Haupt asked 4/11, 2022 at 17:16
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 ...
Wormhole asked 29/7, 2021 at 6:49
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...
Arriola asked 19/3, 2021 at 16:46
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...
Alice asked 24/11, 2022 at 14:7
3
Solved
There is something similar like swiperefreshlayout to pull to refresh in the jetpack compose
Shena asked 22/4, 2021 at 0:2
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...
Ballyrag asked 24/6, 2021 at 12:53
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...
Arsenic asked 2/11, 2022 at 16:5
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...
Ross asked 10/4, 2021 at 6:24
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...
Bruckner asked 12/12, 2020 at 3:12
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...
Scuba asked 7/9, 2022 at 13:17
2
For example, I have MyBottomSheetDialogFragment with Compose LazyColumn code in the application:
class MyBottomSheetDialogFragment : BottomSheetDialogFragment() {
override fun onCreateView(
infla...
android-jetpack-composeandroid-bottomsheetdialogbottomsheetdialogfragmentandroid-jetpack-compose-listlazycolumn
Clincher asked 14/1, 2022 at 12:32
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...
Incestuous asked 29/6, 2021 at 16:20
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...
Blockus asked 30/3, 2022 at 17:50
1 Next >
© 2022 - 2024 — McMap. All rights reserved.