Please do not stop making videos!! Your content is gold to me. I am learning so much from you.
@bjugdbjk3 жыл бұрын
This is one of the best recommended channel youtube done to me..such a great content, Thank you so much for your kind efforts.
@no_fb3 жыл бұрын
Thanks! But if that's about optimization you may as well, in MyDiffUtil, 1) use count() instead of size for good practice, and 2) have a local variable to the list[position] items in the old and new list, not to accumulate the linear access cost for each comparison.
@HalimCode3 жыл бұрын
Lots of loves from Afghanistan...😘🇦🇫
@catman40012 жыл бұрын
u have internet dude ?? just curious : )
@RonaldoGuedes2 жыл бұрын
Perfect!!! On a platter my recycler view get animated! so fluid! so fast!
@kisan_thapa3 жыл бұрын
6:08 Why are you comparing each properties of Person Data Class? Kotlin Data class generates equals() function for us. So return oldList[oldItemPosition] == newList[newItemPosition] will be enough.
@StevdzaSan3 жыл бұрын
It's purely for tutorial purpose. That way people will better understand how comparison is working behind the scenes.
@kisan_thapa3 жыл бұрын
@@StevdzaSan Thank you for reply. I discovered your channel this morning. I am loving your videos, keep posting videos regularly.❤️❤️
@mayx88442 жыл бұрын
Thank you very much, bro, your material saved me at least two working days for 10 minutes :)
@vuanhduong70343 жыл бұрын
Another component to improve my project. Thank you so much
@スヘア3 жыл бұрын
You just read my mind. I was about to search for this video. Thank you
@TharinduDanushke Жыл бұрын
Its really helpful & greate explanation
@deepakprajapati5064 Жыл бұрын
Thanks for the clean code and understanding.
@shiden163 жыл бұрын
Thanks sir, i love watch your tutorials its gold (sry for my bad english)
@ПавелЗубко-ц8ч3 жыл бұрын
Thank you very much everything worked out without question
@StevdzaSan3 жыл бұрын
Great 👌
@galihindrafirmansyah12832 жыл бұрын
thanks my fellow developer
@haseeb7766 ай бұрын
Great explanation. I have static list of icons from drawable and i need to show them in recycler view but, recycler view lags on first load. Is there any workaround?
@Berryss3 жыл бұрын
Isnt this example the same as NotifyItemChanged and you pass the latest position on the list?
@shoxruxquroqov53493 жыл бұрын
Hi Thank you for video. RowLayoutBinding in the ViewHolder constructor didn’t work for me
@mdforkan20123 жыл бұрын
You are the best 😍
@elaheshiri32843 жыл бұрын
So so good!! you are the One! thumb up of course Thank you!!!
@kostasmitsos54823 жыл бұрын
hello ... what if we want to use diffutil with 2way dataBinging ... is it posible ? ... thank y for your great work !!!
@widcoshop3 жыл бұрын
Hi can you make it with java?
@MrRahulmalik3 жыл бұрын
how about using ListAdapter
@paramvirsingh5640 Жыл бұрын
TIP: you can just use the following code is your are using Kotln Data Classes since it already implment the comparsion for all the properties of a Class. override fun areContentsTheSame(oldItemPosition: Int, newItemPosition: Int) = oldList[oldItemPosition] == newList[newItemPosition]
@marc9882 жыл бұрын
That's great, in local. but can we use this same function (DiffUtil) if our data (those for the recycle view) come from firebase / where several user can constantly be editing the list (adding new elements, for example) ?
@sholagebeya28633 жыл бұрын
You are the best. I love you. ❤️
@farhad95793 жыл бұрын
great topic well done ty
@jseh_3 жыл бұрын
it preserve position on the recyclerview?
@mikemikee77973 жыл бұрын
Can you cover also async list differ?
@mikayils.86603 жыл бұрын
Thank you for all videos, Can you make a video about custom views ?
@rahmathidayat47972 жыл бұрын
how to handle the case of saving data to local db by diffutil, because it is null if you follow this tutorial
@lara-kp7lp3 жыл бұрын
If we have two data types what we have to do?
@Lucas-hh4oh3 жыл бұрын
Instead of comparing each item's properties, wouldn't it be easier if we just use _return oldList[oldItemPos] == newList[newItemPos]_ in areContentTheSame method?
@syedtayyabulmazhar69453 жыл бұрын
**EDIT** : I just learned that kotlin data class generates equals() method, so you are correct. This would just compare their address in memory. Suppose object o1 has an address 0xab and a name property whose value is "John Doe", and object o2 has an address 0xbc and a name property whose value is "John Doe". Now if you compare them like this : o1===o2, it will return false because 0xab != 0xbc. But if you were to compare them by their content which is the name property, then you can see that both objects have the same content i.e: o1.name is same as o2.name.
@SaherAlSous-welcomes-you3 жыл бұрын
Very Good... Bravo
@abada-s3 жыл бұрын
very powerful thanks
@techstack10423 жыл бұрын
What if when i add the person at index 0 ??
@anaskhalil40572 жыл бұрын
Can u open translate for your videos ?
@nonetoro3 жыл бұрын
I run the app, but it's empty. How to make app shows content? Anyone knows? Thanks.
@dartdeveloper3 жыл бұрын
Very good
@ilhamaliyudin47793 жыл бұрын
Ohh this is Im waiting for
@yudhanjeffri89463 жыл бұрын
Hello Stevdza-San, i like your videos, i hope you can explain the Repository Pattern, Thanks
@ivanguk103 жыл бұрын
Отличный канал, спасибо большое)
@syedtayyabulmazhar69453 жыл бұрын
Wouldn't it be easier to use ListAdapter?
@arseniykucherenko49603 жыл бұрын
Why don't we use Epoxy? It's already do this job for us without extra boiler plate code
@quicksketch16173 жыл бұрын
Thank you
@akshaivsunil6423 жыл бұрын
good one
@easybusinessou3 жыл бұрын
Great 🌹🌹🌹🌹🌹🌹🌹
@deppakkumar6593 жыл бұрын
Why you have started the tutorials in Kotlin only why not Java.
@lowjungxuan63523 жыл бұрын
can share the source code??
@Another0neTime3 жыл бұрын
Real deal!!!
@Mkumarei3 жыл бұрын
🙂...
@lglf7711 ай бұрын
Sad class. I imagined that it adds the new user at the top of the recyclerView list, and not at the end, by default the recyclerView already does this by adding it at the end of the recyclerView. Useless content.