Комментарии:
You are great ❤️ i have learned lot of from your channel. ❤️
ОтветитьThis channel is goldmine for Android
ОтветитьPlease make s tutorial of upload images and video on server or get frames from a video.
Ответить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
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 ...
ОтветитьSir jetpack compose pe bhi series bana do
ОтветитьSir, paging 3 multi view type recycler support krta hai kya... Like Social media app does...
ОтветитьHello , Please make video on StateFlow vs. Flow vs. SharedFlow vs. LiveData ....Which is best and why ??
Ответитьnice
ОтветитьThanks for Great Explanation!!. I want to integrate room data and api call together without using remote mediator. Can you please help.
Ответить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
Ответить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👏
ОтветитьSuch an amazing content. Keep posting more videos!
ОтветитьNeed a video for recyclerview using viewbinding and databinding. Infact need a databinding or viewbinding series
ОтветитьSir very informative video. I am facing an issue that is when items get loaded it scrolls down automatically.
ОтветитьPull to refresh list not working.
ОтветитьSimply superb explanation on Paging! Thanks a lot
ОтветитьSir, can yo make video about pagination with firebasedatabase
ОтветитьGreatVideo !!!
ОтветитьHow to create pdf and share to other app?
ОтветитьBest tutorial I ever watched. Thank you
Ответитьthis is calling same api again and again and fetching same darta how to stop it
Ответить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.
Ответить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 . . .
Ответить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.
ОтветитьIn this example if I scroll up. Will this code work?
Ответить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.
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?
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.
ОтветитьBest, Big fan, sir
ОтветитьThankyou so much sir
ОтветитьPlease sir implement this project using Java code. It will help more people.
ОтветитьSir, how can we implement this using flow? and how can we notify in paging data adapter using flow?
ОтветитьSir firebase realtime database me kese kare. Please ak video chahiye please sir
ОтветитьThank you for the amazing explanation.
Can we use paging 3 with Firestore data, if yes then how
Sir You said that we have to create the viewmodelfactory for viewmodel if it has parameter init
Ответить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.
Hi sir , what happens if we dont have the total page number coming from server ? what will the value of nextKey here ?
ОтветитьMake pagination system using firebase database
ОтветитьDoes this work with different types of viewhholders ?
ОтветитьWhat if I want to pass other params as well with PageNo in the API call for eg SearckKey, How can I pass?
ОтветитьCompose ke liyw video banao pagiing ke sath
ОтветитьSir you forgot to write viewmodelprovider factory because my viewmodel can not instanciated properly
Ответитьon the this way we can implement pagination in jetpack compose
ОтветитьAmazing, real work Sir ☺☺☺
Ответить♥♥♥♥♥♥ 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
Ответить