Paging 3 Android Tutorial  | Infinite Scrolling Android Tutorial - CheezyCode | Hindi

Paging 3 Android Tutorial | Infinite Scrolling Android Tutorial - CheezyCode | Hindi

Cheezy Code

1 год назад

23,748 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@rushikeshthak2874
@rushikeshthak2874 - 09.07.2022 18:54

You are great ❤️ i have learned lot of from your channel. ❤️

Ответить
@ananjaygurjar
@ananjaygurjar - 09.07.2022 21:35

This channel is goldmine for Android

Ответить
@tanveerahmed729
@tanveerahmed729 - 10.07.2022 03:44

Please make s tutorial of upload images and video on server or get frames from a video.

Ответить
@hardikkoladiya4431
@hardikkoladiya4431 - 10.07.2022 12:05

Can you please make video on gradle
sometimes its confusing in gradle setup or what version of java we should use in project and which gradle version to be set

Ответить
@no_one1500
@no_one1500 - 10.07.2022 21:44

Hello brother i have a question so lets say we read files and save it as arraylist as a custom model let say class contain path ,name size and isSelected. from storage lets says images and videos and we have to show these images in two three activies or fragments what should we do ... Like read files on each and every acitivity or fragment... Or make them static. What should we do ...

Ответить
@sundern990
@sundern990 - 11.07.2022 07:33

Sir jetpack compose pe bhi series bana do

Ответить
@jitendrachouhan7024
@jitendrachouhan7024 - 11.07.2022 08:23

Sir, paging 3 multi view type recycler support krta hai kya... Like Social media app does...

Ответить
@ViralStoriesShorts
@ViralStoriesShorts - 11.07.2022 12:01

Hello , Please make video on StateFlow vs. Flow vs. SharedFlow vs. LiveData ....Which is best and why ??

Ответить
@cryptozink6942
@cryptozink6942 - 11.07.2022 19:33

nice

Ответить
@prashantjain8422
@prashantjain8422 - 12.07.2022 09:29

Thanks for Great Explanation!!. I want to integrate room data and api call together without using remote mediator. Can you please help.

Ответить
@rishikeshsingh9946
@rishikeshsingh9946 - 13.07.2022 23:49

awesome sir

Ответить
@rahulsuthar2063
@rahulsuthar2063 - 25.07.2022 16:55

Bro live tracking ki ek application bna sakti ho aap jisme live location kise lene hai uske bare me btao and background me usko kise run kare screen off hone ke bad bhi location aate rhe

Ответить
@shailysahoo4606
@shailysahoo4606 - 01.08.2022 13:17

You are doing a amazing job. I would like to sincerely thank you for making such professional level videos and sharing it here. I am following you and my concepts are getting clear. Would love to get a reply on my comment and also would like to connect as well. Thanks again👏

Ответить
@Rm10177
@Rm10177 - 15.08.2022 16:27

Such an amazing content. Keep posting more videos!

Ответить
@kartikayy
@kartikayy - 20.08.2022 13:48

Need a video for recyclerview using viewbinding and databinding. Infact need a databinding or viewbinding series

Ответить
@abdulqadir7372
@abdulqadir7372 - 22.08.2022 12:48

Sir very informative video. I am facing an issue that is when items get loaded it scrolls down automatically.

Ответить
@JujareVinayak
@JujareVinayak - 03.09.2022 14:03

Pull to refresh list not working.

Ответить
@devskhobragade
@devskhobragade - 26.09.2022 13:23

Simply superb explanation on Paging! Thanks a lot

Ответить
@Kw710v
@Kw710v - 15.10.2022 12:38

Sir, can yo make video about pagination with firebasedatabase

Ответить
@aiyuayaan
@aiyuayaan - 18.10.2022 15:54

GreatVideo !!!

Ответить
@AmarKumar-vo2bv
@AmarKumar-vo2bv - 25.10.2022 18:07

How to create pdf and share to other app?

Ответить
@aashutoshrimal
@aashutoshrimal - 30.10.2022 11:20

Best tutorial I ever watched. Thank you

Ответить
@nimitagrawal2431
@nimitagrawal2431 - 04.11.2022 19:07

this is calling same api again and again and fetching same darta how to stop it

Ответить
@RahulYadav-vs2wd
@RahulYadav-vs2wd - 07.11.2022 13:34

I think there is a logical issue in getRefreshKey() fun. First time this function will return null. Then the position of the page will be 1 and it's prevKey will be null and nextKey will be 2 as per the logic in fun load(). Again there will be callback to function getRefreshKey(). As per the logic in this function you minus 1 from the nextKey and it will become 1 and this value i will be used as a position in function load and this fuction will again request for the same page which we have already loaded. Correct me if I am wrong. you can check by this by debugging or dry run.

Ответить
@naveennaik1889
@naveennaik1889 - 07.11.2022 15:46

Hi sir , I am trying to implement the same feature in my project . I am to hit server and get the data properly . . .But after submitting data to adapter , Recyclerview is completely blank . . .

Ответить
@RahulYadav-vs2wd
@RahulYadav-vs2wd - 07.11.2022 19:55

fun getRefeshKey() always return 1 as per the logic inside it. So the fun load() will always load page 1. I have performed dry run. Pls Clear my doubt if I am wrong.

Ответить
@RahulYadav-vs2wd
@RahulYadav-vs2wd - 08.11.2022 19:55

In this example if I scroll up. Will this code work?

Ответить
@apunichjohncena4533
@apunichjohncena4533 - 09.11.2022 15:19

Hello sir, hope you will read this comment.
I want to implement pagination for firebase's real-time database. Basically, I want to fetch a single model from the database and show it in viewpager2, after that when the user will scroll the screen it should fetch the model again from the database. After searching for 4 days on the internet, I am posting this comment in the hope that you can help me.
Questions->
1. we fetch data from the cloud in the repository class and here we are also calling PagingSource class from the repository, I can not imagining the flow of code.
2. What will be the key for LoadResult<?, Room>.
3. How to do it without DI.

Ответить
@RahulYadav-vs2wd
@RahulYadav-vs2wd - 10.11.2022 21:12

override fun getRefreshKey(state: PagingState<Int, Item>): Int? . The logic return state.anchorPosition?.let {
state.closestPageToPosition(it)?.prevKey?.plus(1)
?: state.closestPageToPosition(it)?.nextKey?.minus(1) will always return 1. I think this logic is not correct because at the begning the prevKey = null and the nextKey =2. this is the first page. And in this function you are substracting 1 from the next key because prevKey is null. So it will return 1. Again in override suspend fun load(params: LoadParams<Int>): LoadResult<Int, Item> params.key will return 1. the prevKey = null and the nextKey =2 again as per the logic inside override suspend fun load(params: LoadParams<Int>) function. So it will always make api request for the same page , i.e 1. Are you getting my point?

Ответить
@RahulYadav-vs2wd
@RahulYadav-vs2wd - 12.11.2022 22:15

ye getRefreshKey() function jo h ismey kiya anchor position mee plus 1 ya minus 1 hota h ya phir prevKey ya nextKey mee se plus ya minus karkey return hota h value. Agar anchor position mee plus 1 ya minus 1 hota h tab tu iss function ka logic sahi h hamey desired page milta nahi tu same page milega jo anchor position hold karta h.

Ответить
@rishabhgarg6692
@rishabhgarg6692 - 20.11.2022 20:01

Best, Big fan, sir

Ответить
@pritech8302
@pritech8302 - 05.12.2022 21:53

Thankyou so much sir

Ответить
@mukeshroy4971
@mukeshroy4971 - 19.12.2022 08:30

Please sir implement this project using Java code. It will help more people.

Ответить
@DushyantGangwal
@DushyantGangwal - 29.12.2022 08:13

Sir, how can we implement this using flow? and how can we notify in paging data adapter using flow?

Ответить
@opensky2.020
@opensky2.020 - 11.01.2023 08:18

Sir firebase realtime database me kese kare. Please ak video chahiye please sir

Ответить
@yonija007
@yonija007 - 23.02.2023 11:52

Thank you for the amazing explanation.
Can we use paging 3 with Firestore data, if yes then how

Ответить
@prashupandey1304
@prashupandey1304 - 03.03.2023 13:53

Sir You said that we have to create the viewmodelfactory for viewmodel if it has parameter init

Ответить
@UbedThaheem
@UbedThaheem - 05.08.2023 22:18

Thanks for this video, I have few questions & I sent an email to you.
First of all, as per your codes, it is showing errors & build failed.. I am trying to get data from SQLite instead of APIs.

Ответить
@rajatdash1474
@rajatdash1474 - 03.09.2023 20:20

Hi sir , what happens if we dont have the total page number coming from server ? what will the value of nextKey here ?

Ответить
@Program-withsagar2865
@Program-withsagar2865 - 08.09.2023 13:49

Make pagination system using firebase database

Ответить
@suhasbachewar229
@suhasbachewar229 - 08.09.2023 17:44

Does this work with different types of viewhholders ?

Ответить
@yonija007
@yonija007 - 30.09.2023 18:45

What if I want to pass other params as well with PageNo in the API call for eg SearckKey, How can I pass?

Ответить
@neerajverma9226
@neerajverma9226 - 04.02.2024 00:36

Compose ke liyw video banao pagiing ke sath

Ответить
@virajbenade5572
@virajbenade5572 - 10.03.2024 07:04

Sir you forgot to write viewmodelprovider factory because my viewmodel can not instanciated properly

Ответить
@virajbenade5572
@virajbenade5572 - 01.04.2024 15:42

on the this way we can implement pagination in jetpack compose

Ответить
@AnandSharma-ei1fv
@AnandSharma-ei1fv - 07.04.2024 09:20

Amazing, real work Sir ☺☺☺

Ответить
@mahboobforever
@mahboobforever - 11.05.2024 16:45

♥♥♥♥♥♥ sir , live data ki jaga py flow kesy use hoga, main activity me ???? QuoteRepository me to thek ha .flow lag jye ga but ? main Activity me kesy use krein

Ответить