Тёмный

Paging with Paging 3 

Android Developers
Подписаться 1,3 млн
Просмотров 55 тыс.
50% 1

The Paging library enables you to load large sets of data gradually and gracefully, reducing network usage and system resources. So we launched Paging 3.0 (now in alpha), a complete rewrite of the Paging 2 library using Kotlin coroutines (but still supporting Java users) and offering the features you asked for, like easier error handling, more flexibility to implement list transformations like map or filter, and support for list separators, headers, and footers.
In this talk we’ll go over the main Paging 3 components, see how they fit in an existing app architecture, how to implement them and integrate the most common data paging features.
Resources:
Paging documentation → goo.gle/paging3-docs
Paging codelab → goo.gle/paging3-codelab
Paging sample → goo.gle/paging3-sample
Check out the 11 Weeks of Android website → goo.gle/30FDT8S
Related Playlists:
Android Jetpack - 11 Weeks of Android playlist → goo.gle/jetpack-11weeks
11 Weeks of Android playlist → goo.gle/android-11weeks
Subscribe to Android Developers → goo.gle/AndroidDevs
Speakers:
Florina Muntenescu
#featured #android11 #11WeeksOfAndroid

Наука

Опубликовано:

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 79   
@orwakassab8326
@orwakassab8326 2 года назад
The Codelab is complex, really trying hard to understand what is going on. I have studied several codelabs and most of them were easy to follow, but this is the most difficult one
@ksalarang
@ksalarang 2 года назад
I think the problem is flows. For this codelab they could just use LiveData. That's what I did, which simplified things greatly
@codinginflow
@codinginflow 4 года назад
Trying it out right now
@ruif3r
@ruif3r 3 года назад
please, explain how to perform a search in the recyclerview using this API :c
@coding1806
@coding1806 3 года назад
ruif3r that’s the work of transformation
@milchschlumpf9809
@milchschlumpf9809 4 года назад
Can't wait for Paging 4!
@shaun.august
@shaun.august 4 года назад
haha already?? Paging 3 is awesome..don't be too like lol
@0xmg
@0xmg 4 года назад
🤣
@kawaiiLittleDango
@kawaiiLittleDango 4 года назад
He's paging the paging
@civic443
@civic443 4 года назад
😂😂😂😂Funniest comment i have encountered today
@adoniasalcantara522
@adoniasalcantara522 3 года назад
@Deprecated
@mddi1420
@mddi1420 4 года назад
That Remote Mediator is quite interesting, should be designed outside paging, it can be even useful for case which is not using paging but want to rely on local db and fetch network when needing it.
@k40ol
@k40ol 10 месяцев назад
This presentation style, architecture overview and snippets are an awesome way to present. Thank you for sharing this and improving paging on Android!
@lightlysaltedcalmingvlogsa7286
@lightlysaltedcalmingvlogsa7286 4 года назад
Great video but you’d get an empty cursor error when finding bad dogs because all dogs are good dog some are just extra good
@codinginflow
@codinginflow 4 года назад
😂
@mahdijavaheri6763
@mahdijavaheri6763 4 года назад
I'v been expecting to see granular update feature in paging 3.0 not all projects work with database and network mix is there any plan to incorporate this?
@MikeDownes
@MikeDownes 4 года назад
I LOVE the way the Googlers, and others, have adapted to working from home! Nice job Florina & team ..
@btc2100
@btc2100 3 года назад
Wonderful, this is more than I expected.
@vivekmodi726
@vivekmodi726 3 года назад
Hi, is this library work in both directions. I want to scroll in upward direction in recyclerview. Normally ever where is using forward scrolling in which append function is used to add item in the end of list. Some how i figure out to know these functions. I found somewhere if we want to add item in top of list we want to use prepand function is there any tutorial for this or any sample code. Thanks
@aldowachyudi6859
@aldowachyudi6859 4 года назад
Is it possible to update one Doggo once the list is loaded? For example, if user wants to rename a Doggo, the Doggo name should be updated. But I don't want to invalidate the whole list. Only that one Doggo. Like a typical application, the update process happens using an API call. I find it difficult to do in Paging 2.0.
@brijwel
@brijwel 4 года назад
you will have to cache in room db for that.
@aldowachyudi6859
@aldowachyudi6859 4 года назад
@@brijwel When I delete a row in DB, the PagedList automatically updates the list as well?
@brijwel
@brijwel 4 года назад
@@aldowachyudi6859 whatever changes you make in room db it will automatically update the ui.
@dilaojermaine
@dilaojermaine 3 года назад
Man, that's a crazy huge path for a simple use case.
@rhen4610
@rhen4610 2 года назад
2 years later and Paging 3 still expects you to not modify a single item.
@byunghwara
@byunghwara 3 года назад
Good library! How to unit test a Dao query that returns a PagingSource? Is there any sample code available?
@sandoruszkai3132
@sandoruszkai3132 4 года назад
Can I use RemoteMediator with both HTTP Requests and Socket.IO as two data sources?
@zhigangguo1589
@zhigangguo1589 4 года назад
I can't find api to modify data set , for example get all load data set, remove one data item, change one data item value...
@HasanKhan-ol2no
@HasanKhan-ol2no 4 года назад
Last time I try paging 2 fully implemented it but when sorting and transforming fetch data to live data it suck so I have to change all implementation to old way. I am happy they added support for transformation and sorting.
@VikasSharma-cv1su
@VikasSharma-cv1su 2 года назад
is it possible to have footer with load more state in which there is no retry button, i just want that when there is more item it should load with progressbar as footer & when when error occur in load more case then progressbar should hide, again if i try to load more it should load? right now after getting error it is not loading
@mostafabalba9010
@mostafabalba9010 4 года назад
I have no access to the full loaded data from inside the adapter paging 2 have get currentlist paging 3 sucks reallybad
@babythedude
@babythedude 2 года назад
Is the Paging library intended to only be used in a list? Is it possible to manually trigger it to load more? Like continually display more markers(item) on a map
@PankajSavaliyaGoogle
@PankajSavaliyaGoogle 4 года назад
Awesome support library 👍
@programuoki-lt1465
@programuoki-lt1465 3 года назад
I feel that Android development is Extremely complex and is really aimed to Advanced users. Why is so hard to learn???
@leninomarfmtz2154
@leninomarfmtz2154 3 года назад
There's alway iOS if you want to do old stuff and sell that as an overpriced "innovation".
@vadzimv
@vadzimv 4 года назад
Thanks, seems like many new and useful features :) BTW, should we rethrow cancellation exception on example from 3:33 ?
@anuabraham9638
@anuabraham9638 2 года назад
I am using this.I have to add some other item in some positions. How can i add this item based on index not on the content of the item
@SnoopyDoofie
@SnoopyDoofie 4 года назад
So how does the MergeAdapter fit into this?
@johnjeremih
@johnjeremih 2 года назад
The first header is not showing up working when is getting the data from the database because the before is no null. Any solution?
@CodeWithNiks101
@CodeWithNiks101 3 года назад
Paging codelab not found, URL is broken
@mischiew
@mischiew 2 года назад
When will paging-3 support initial key and scrolling to a position? As of today, it can't do that without loading random pages, so it cannot be used safely. Those are real use-cases.
@S9dpK
@S9dpK 3 года назад
Its OK , How to get If My response is false case like {status : false , message : "oops no data found"}
@verdesps87
@verdesps87 4 года назад
In a word: wow! I can't wait...
@abdullahcelik8060
@abdullahcelik8060 3 года назад
Tested the codelab today...it was fantastic. Not only the listing part, but also the footer and header stuff was amazing. The built-in error handling stuff is also very helpful. I hope that soon we can also get rid of this ExperimentalApi annotation. But nevertheless, the Paging 3 API is awesome. EDIT: I wish your team could also tackle the Android Camera API stuff because building camera apps in Android is a pain in the a*?!.
@narekdallakyan3840
@narekdallakyan3840 4 года назад
Thank you.
@deviantstudio
@deviantstudio 4 года назад
the api is still poor. i would like having ability to invalidate specific page key, get access to whole data set, get currently loaded key in the callback, jump to specific key in the list etc etc etc
@nazirjonmakhmadkulov371
@nazirjonmakhmadkulov371 2 года назад
How can an item be added, changed, removed in the PagingDataAdapter?
@aadityabrahmbhatt
@aadityabrahmbhatt 4 года назад
Waiting for a video on Jetpack Compose!
@belajarotodidak01
@belajarotodidak01 3 года назад
looking forward to unit tests
@Ruhulamin-ur3kw
@Ruhulamin-ur3kw 2 года назад
Jetpack Paging Library3 loads all pages without scrolling. I Have Nested RecyclerView Inside NestedScrollView .How Can I Solve ? Please any Solution
@neerajverma9226
@neerajverma9226 3 года назад
why pagging 3 doesn't supported with firebase realtime database?
@antesaralmajry5709
@antesaralmajry5709 4 года назад
Very nice
@ArjunVerma-lq4cf
@ArjunVerma-lq4cf 3 года назад
This is the way things should be explained
@gaoliang1368
@gaoliang1368 Год назад
how drag drop resort item
@mattgraves3709
@mattgraves3709 3 года назад
This is easier?
@xmlluhuan2738
@xmlluhuan2738 2 года назад
How to listen scroll
@krishnaappworlds3486
@krishnaappworlds3486 4 года назад
wow cool
@doilio
@doilio 3 года назад
The codelab page is currently offline
@gaoliang1368
@gaoliang1368 Год назад
It would be awesome if you can make a CRUD operations with Paging 3
@aspix2k
@aspix2k 4 года назад
I'll definitely try it, cause Paging 2.0 unfortunately sucks
@abedfetrat1212
@abedfetrat1212 4 года назад
It's so complicated to use with Java
@tashi7160
@tashi7160 3 года назад
Still alpha !! Wondering why it is taking too long for the beta version.
@quangtruongpham4057
@quangtruongpham4057 4 года назад
😍😍😍
@HangNo
@HangNo 4 года назад
Kindly Add The *AppLock* 😬 Please.
@bangonkali
@bangonkali 4 года назад
Looking forward to Paging 4
@pikapika8282
@pikapika8282 3 года назад
Is it me, or has Android left us Java developers behind. (. _ .)
@neowakeup1100
@neowakeup1100 3 года назад
This is deprecated already 🙄, cannot find a good tutorial 😔
@mohamedabdul633
@mohamedabdul633 3 года назад
To be honest I really do not like the documentation for this, especially the Java version gave me massive headache.
@kisan_thapa
@kisan_thapa 3 года назад
04:55
@SnoopyDoofie
@SnoopyDoofie 3 года назад
Dislikes by cats
@IbrahimMagdy31
@IbrahimMagdy31 2 года назад
Thank you
@technicalkrishna7971
@technicalkrishna7971 4 года назад
wow cool
@imtiyazhasankhan
@imtiyazhasankhan 4 года назад
Kindly Add The AppLock 😬 Please.
Далее
Getting to know CameraX Beta
11:07
Просмотров 14 тыс.
Navigating navigation
14:20
Просмотров 34 тыс.
Телеграмм-Колян Карелия #юмор
00:10
Kotlin Flows in practice
21:06
Просмотров 154 тыс.
Support for newer Java language APIs
10:05
Просмотров 15 тыс.
Animating your keyboard using WindowInsets
13:25
Просмотров 44 тыс.
Debugging UI issues with Layout Inspector
5:57
Просмотров 24 тыс.
Aura 879dsp новинка и хит
0:48
Просмотров 160 тыс.
iPhone 16 - НЕ СТОИТ ПРОПУСКАТЬ
4:50
Самый быстрый пылесос!
0:30
Просмотров 23 тыс.
Prices & Poco M4 Pro 5G
1:00
Просмотров 265 тыс.