All Questions
Tagged with kotlin android-recyclerview
3,456
questions
0
votes
0
answers
8
views
Paginated Data, Should I keep it as state of the screen or only internal state to recycler view adapter?
How to manage paginated data in a StateFlow for a RecyclerView?
Should I store only the last fetched page in the StateFlow and accumulate data in the adapter, or should I store the entire dataset in ...
0
votes
1
answer
28
views
In RecyclerView, why I got -1 when I want to get the position of item being clicked?
I write the click in the adapter.(This adapter deal with an image and a text.)
class FruitAdapter (val fruitList:List<Fruit>)://Fruit is a data class for an image with its text
RecyclerView....
0
votes
0
answers
21
views
Kotlin databinding for a custom view (canvas) for a recyclerview with multiple viewtypes
Previously I used kotlin synthetics, but now I'm trying to upgrade to data binding.
I have a recyclerview in a fragment and it will have multiple view types all of which will be custom-draw with a ...
0
votes
0
answers
29
views
Sharing PagingData between two recylerviews in Android
I've two recyclerview and need to share the same PagingDataFlow into both, so they can display the same data ( some horizontal scrolling issue, so some data will be on left some will be on the right)
...
0
votes
0
answers
21
views
RecyclerView Filter
I have a Fragment which is made up of 3 components. It is mounted using this Adapter.
I need help with a filter in RecyclerView. Currently the filter is working for the first time, but when I delete ...
0
votes
0
answers
20
views
Android Studio Scroll only Text in textview inside RecyclerView but not all page
I have a problem with RecyclerView.
When I fill my descTextView to my adapter file. DescTextView Scrool is not working. I want to scrool just text in descTextView.
If i change layout_height to ...
0
votes
0
answers
22
views
Is there any way to optimize the loading of items (layout) in a RecyclerView?
I know that coroutines help with the data in the RecyclerView, but my problem is not the data, because the item inside the recycler don't use images or database, my problem is the layout i am using, I ...
0
votes
0
answers
11
views
How to swipe front card at the bottom position in overlapping cards in android?
I have a set of overlapping cards like this Overlapped cards
So what I want to achieve is When I swipe LEFT the front card (A) it should move to bottom of all the overlapped cards and the card B below ...
0
votes
1
answer
22
views
recyclerview-selection touch conflict with ItemTouchHelper move
I'm using recycler recyclerview-selection for selection and ItemTouchHelper.SimpleCallback for reorder the items. Like below:
I can drag and drop the icon on the right (green) part for reordering, ...
0
votes
1
answer
48
views
Cannot display Data from my layout viewBinding
I am new to Android Studio. I have been following a tutorial on how to create a Kotlin-based MVVM app with Firebase. I created a data class called ServiceOrder that contains all the necessary data ...
0
votes
0
answers
22
views
How to change the order or RecyclerView items in GridLayoutManager?
I have written my own implementation of GridLayoutManager to display specific given number of rows and columns of RecyclerView.
The problem is, that the items are being rendered in a top-to-bottom ...
0
votes
0
answers
23
views
Increasingly Large Spacing Between Rows in a RecyclerView in a ConstraintLayout
The spacing between rows in my RecyclerView becomes increasingly large. Setting layout_height to wrap_content didn't seem to fix this common spacing issue.
XML of recycler row:
<?xml version="...
0
votes
0
answers
36
views
How to change the order of displayed items in horizontal RecyclerView using GridLayoutManager with constructor?
I want to create a horizontal RecyclerView that displays the items in such form:
Item1 Item2 Item3 Item4 Item5 | Item11 Item12 Item13 Item14 Item15
Item6 Item7 Item8 Item9 Item10 | Item16 Item17 ...
...
0
votes
1
answer
32
views
how can recyclerview central item highlight?
At first, I tried to use a view pager, but due to the overall size issue of the view pager, I didn't think it was right to implement such a screen.
So I started using Recycler View and even worked on ...
0
votes
1
answer
37
views
Firebase RecyclerView not Displaying Retrieved Data in Fragment Despite Successful Fetch and Adapter Setup In kotlin Xml Android
I'm unable to display data retrieved from the Firebase Realtime Database in a RecyclerView within my Android application.
Despite successfully fetching the data (as confirmed by logging), the ...