Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

androidx.paging.PagedListAdapter' is deprecated

I'm using an alpha release of androidx's paging library in my android project. It used to work fine but today my android studio started to show this deprecation warning about the PagedListAdapter class. I searched on google and also checked out the official documentation on the android developer's website, but didn't find anything.

I'm using the following dependency:

def paging_version = "3.0.0-alpha06"
implementation "androidx.paging:paging-runtime:$paging_version" //pagination

Ataching screenshot for reference: Ataching screenshot for reference

It is just an android studio's glitch or it has been really deprecated?

like image 395
Nilesh Rathore Avatar asked Sep 17 '20 09:09

Nilesh Rathore


People also ask

What is PagedListAdapter?

PagedListAdapter listens to PagedList loading callbacks as pages are loaded, and uses DiffUtil on a background thread to compute fine grained updates as new PagedLists are received. Handles both the internal paging of the list as more data is loaded, and updates in the form of new PagedLists.

What is paging in Android Studio?

The Paging Library lets you load data directly from your backend using keys that the network provides. Your data can be uncountably large. Using the Paging Library, you can load data into pages until there isn't any data remaining. You can observe your data more easily.

What is paging in library science?

The Paging library helps you load and display pages of data from a larger dataset from local storage or over network. This approach allows your app to use both network bandwidth and system resources more efficiently.


1 Answers

PagedListAdapter has been deprecated in favor of PagingDataAdapter. Paging3 is essentially a full rewrite of Paging2, but in kotlin + coroutines. You can find docs here: d.android.com/paging3 as well as a link to the codelab and samples.

like image 128
dlam Avatar answered Sep 27 '22 02:09

dlam