183 questions
2
votes
0
answers
448
views
Recycler view does not update until scrolled when using DiffUtil and submitList() with a reversed Array List
I have an array list of log entries, which consists of an a time and date with a description. I want the user to be able to reverse the direction from oldest to newest and back again.
I am using ...
1
vote
1
answer
138
views
DiffUtil in RecyclerView Adapter does not display all items when inserting more than one consecutively
I'm using a RecyclerView along with DiffUtil to manage changes in the data list. The issue I'm facing is that when attempting to insert multiple items consecutively into my adapter using ...
0
votes
1
answer
98
views
Unable to update recycler view using live data, room database, diff utils, mvvm architecture
I am trying to update recycler view after clearing room database. On click of clear button in pop up menu data from room database is cleared up recycler view is not updated.
Error can be seen
Error ...
1
vote
0
answers
53
views
Recyclerview is scrolled up when dispatchUpdatesTo is called
Recyclerview is scrolled to its top when dispatchUpdatesTo method is called after calculating Diffutil difference, even after state is stored.
Tried saving state and restoring, but not working.
Tried ...
0
votes
1
answer
90
views
Diff util not updating items in recycler
I have problems updating data into recycler view. Im using adapter with diffutil
class DiffUtilCallback : DiffUtil.ItemCallback<SectorItemDataUI>() {
override fun areItemsTheSame(oldItem: ...
0
votes
1
answer
85
views
None of the following functions can be called with the arguments supplied - AsyncListDiffer
I was creating a RecyclerView adapter. but then I got AsyncListDiffer issue.
None of the following functions can be called with the arguments supplied - AsyncListDiffer
how to fix it ?
NoteAdapter.kt
...
1
vote
1
answer
170
views
ListAdapter: Item click listener not re-binded after submitList
I have a problem with ListAdapter despite that it is probably working as intended is becoming a bug on my end.
Let say I have this data class
data class AssetMinDataDomain(
val id: String = "&...
0
votes
0
answers
101
views
Recyclerview Listadapter - updating visibile items in realtime
I am facing following problem:
Having this entity to show a list of channels with each its current and next program in a recyclerview (ListAdapter with Diffutil):
data class TvChannelsWithEpgData(
...
0
votes
0
answers
308
views
How display correctly different list with same items with DiffUtil in kotlin?
it's my first post in stack overflow, sorry in advance if my message has charter faults.
I've problem using DiffUtil in my project, i hope you can help me. I explain:
I build an app who manage ...
0
votes
1
answer
119
views
dataSetChanged in List Adapter displays scrollbars in Recycler View each time
I have Recycler View (inside SwipeRefreshLayout) with vertical scrollbar with custom thumb color:
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/...
0
votes
0
answers
182
views
AndroidTv Leanback Correct way of updating rows and headers
In light of this article on medium Which works perfectly fine when using PageRows in a BrowseSupportFragment. Things get ugly when ListRow is used instead of PageRows and the whole list and headers ...
1
vote
1
answer
582
views
DiffUtil (dispatchUpdatesTo) not updating Recycler View
I am implementing a recycler view with diff util, but the first time I send the list to the adapter, the recycler view is not notified about the new list. Only the second time I update the list does ...
1
vote
3
answers
270
views
how to update the data in specific position in the recyclerview without notifying the whole item? (Ex. text, image etc)
I need the functionality to update the data in the item in the recycler view. right now, If we notify the whole item it shows some fluctuation and we want to avoid refreshing the whole item on the UI.
...
0
votes
1
answer
351
views
If data in a recycler view item is null then don't display the view holder
I have an API which give me the list of doctors. On it's last page only 1 item is there and other items are null like this:
After this i have used paging library for pagination
my pagingSource code: `...
0
votes
1
answer
1k
views
Android Leanback: How to update nested rows item in RowsSupportFragment
Hey Guys
I'm working on androidTV application using leanback library.
I should show list of categories that each category has it's own list of contents. For this approach leanback offered ...