Pull to Refresh in Recycler View | Android

Поділитися
Вставка
  • Опубліковано 8 жов 2024
  • In this video you will learn how to setup Swipe or Pull to refresh inside a Recycler view.
    ⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/g...
    FREE $100 credit @Digital Ocean: m.do.co/c/3208...
    Patreon: / trulymittal
    Subscribe: www.youtube.co...
    #RecyclerView: • Recycler View with com...
    Github(Tutorial): github.com/tru...
    #SwipeRefreshLayout: developer.andr...
    RecyclerView: developer.andr...
    RecyclerView(dependency): developer.andr...
    ---------------
    More useful videos
    ---------------
    #ViewModel: • View Model | Live Data...
    #Retrofit: • RETROFIT Tutorial (v 2...
    #WorkManager: • Work Manager | Android...
    #KeyframeAnimations: • Keyframe Animations wi...
    #CollapsingToolbar Layout: • Collapsing Toolbar Lay...
    #BottomNavigation View: • Bottom Navigation View...
    #NavigationComponent: • Navigation Component |...
    #NightMode: • Night Mode | Dark Mode...
    #ButterKnife: • Butter Knife | Field a...
    SplashScreen: • Splash screen | Launch...
    Singletons: • Singletons | What When...
    ---------------
    What I use
    ---------------
    Mouse: amzn.to/2O9RJtu
    Keyboard: amzn.to/2qxajCU
    Keyboard 2: amzn.to/2XDWH4X
    Monitor: amzn.to/2pDg7dH
    Processor: amzn.to/347WWIb
    RAM: amzn.to/2QEkUqw
    Graphics: amzn.to/33aBrF4
    Microphone: amzn.to/2DabdI9
    #yoursTruly #tutorial #how-to #android

КОМЕНТАРІ • 71

  • @harishakula2274
    @harishakula2274 3 роки тому +5

    Excellent tutorial, good narration android straight to the point. Can't believe this channel is underrated. Subscribed

  • @nanonewsticker8804
    @nanonewsticker8804 4 роки тому +2

    Thank you for easy understandable explanation. Made my day.

  • @Mwme2000
    @Mwme2000 4 роки тому +2

    THANKS Simple and amazing explanation

  • @lighttigerxiv
    @lighttigerxiv 2 роки тому +1

    Nice video. Straight to the point :D

  • @MiYakudzik
    @MiYakudzik 2 роки тому +1

    Thank you! Short and helpful! 👍👍

  • @ON-zd3vf
    @ON-zd3vf 3 роки тому +1

    This was perfect, thank you!

  • @TodayVideostrending
    @TodayVideostrending 4 роки тому

    bro Please Make One Video for Native Ads in Recyclerview using Volly Method

  • @byangoymukamba827
    @byangoymukamba827 3 роки тому +1

    you are the best, think you so so much

  • @AnyThink5
    @AnyThink5 Рік тому +1

    very helpful

  • @ahsansyed4146
    @ahsansyed4146 3 роки тому

    it is recommented to use SwipeRefreshLayouy only with RecyclerView? or we can use it on any type of layout(user detail form etc) ?

  • @neokerd9958
    @neokerd9958 4 роки тому +1

    Thank you so much

  • @DellohBorisOuahou
    @DellohBorisOuahou 3 роки тому

    Please, what event to add to retrieve when I slide my finger over an element from left to right

  • @vijayasrivuddanti7828
    @vijayasrivuddanti7828 3 роки тому

    Hii, I am not able to find the swipe refresh tag when i am trying to add that in my project. for that do i need to add any dependency?

  • @christiangp2
    @christiangp2 4 роки тому +1

    Tank you for you video, bro. you're great.

  • @yusepbudijono3960
    @yusepbudijono3960 4 роки тому +1

    Thank you sir

  • @vikki4946
    @vikki4946 3 роки тому

    Thank you

  • @kondrashov-m
    @kondrashov-m 3 роки тому

    Can you help me? How to make a swipe to update your browser page?

  • @CristhianGomez
    @CristhianGomez 4 роки тому +1

    Amazing, thanks for sharing!

  • @mohamedayad70
    @mohamedayad70 3 роки тому

    bro can you explain how to make sqlite database which has image and text we can display them into recyclerview ( but the images are not from the resources " the user put it " )
    and thank you bro for your amazing tuts appreciate it

  • @KashifAli-yg6yk
    @KashifAli-yg6yk Рік тому

    Bhai jab ma aik activity see back press karta hu main activity par too mera pehly add huwa data removed hojata hen recyclerview mai please solution ??

  • @prashantb386
    @prashantb386 4 роки тому +2

    How to add androidx Swipe Refresh Library? classes could not be found androidx Swipe refresh layout

    • @AVAVines
      @AVAVines 4 роки тому

      Same problem here

    • @lukecross5439
      @lukecross5439 4 роки тому

      @@AVAVines this method is deprecated now

    • @vaibhavsrivastava9001
      @vaibhavsrivastava9001 4 роки тому +1

      dependencies {
      implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
      }

    • @lukecross5439
      @lukecross5439 4 роки тому

      Just be careful, the methods was changed in the AndroidX Jetpack, you need review the library.

  • @kcreations5478
    @kcreations5478 Рік тому

    Sir I want to create an android app for my IoT project. The working of the app is very simple the user can add device and control them through the app. I am using three fragments which are interchangeable according to the position to show these fragment I am using Viewpager2 in the FragmentStateAdapter class. In the device fragment I am using a recycler view in which I am adding some cardlayout according to the numbers of device present whenever a new device is added then a new card view is added to the second fragment but the problem is when I want to delete a device the device is deleted from the database but the change is not reflecting in the RecyclerView. The RecyclerViewadapter.notifydatasetChanged() method is also not working. Can you please help me

  • @iamtipe
    @iamtipe Рік тому

    Perfect

  • @rajm2671
    @rajm2671 4 роки тому

    Please add a load more with bottom progessbar in this serious

  • @himanshukandwal1374
    @himanshukandwal1374 4 роки тому

    Bro pls upload video on item decorations of recyclerview

  • @dilshodiskandarov7144
    @dilshodiskandarov7144 3 роки тому

    Rahmat brat

  • @ElOsoRobbie
    @ElOsoRobbie 5 років тому

    Please shake animation button without hover

    • @mafiacodes
      @mafiacodes  5 років тому

      I made a GitHub repo for your help, checkout, github.com/trulymittal/ShakeAnimation

  • @67Diadem
    @67Diadem 3 роки тому

    I have a question on recycler view, whenever data is loaded in the server, recycler view loads slowly, I get the data by using an API, can you please help me how to fasten the process of loading the data or is there any way to load the data in background so that whenever user open then he doesn't have to wait for some seconds..

    • @mafiacodes
      @mafiacodes  3 роки тому

      use a background service...or work manager ua-cam.com/video/ooP8kkhvRQI/v-deo.html

  • @amitbaddi
    @amitbaddi 4 роки тому

    Hai i have to change data List in Adapter pls help

  • @vamsi1871
    @vamsi1871 5 років тому

    Make videos on services&broadcast receivers also
    Plz make videos of services topic and broad cast receivers and sqlite sir. . . .

    • @mafiacodes
      @mafiacodes  5 років тому

      will be coming in a couple of days, till then SUBSCRIBE LIKE SHARE

  • @inderjitsingh9634
    @inderjitsingh9634 4 роки тому

    Which theme r u using in Android studio sir?

    • @mafiacodes
      @mafiacodes  4 роки тому +1

      Google developers theme

    • @inderjitsingh9634
      @inderjitsingh9634 4 роки тому +1

      @@mafiacodes i m beginner in Android development, your videos helped me a lot. Thank u so much from the bottom of my ❤️

    • @mafiacodes
      @mafiacodes  4 роки тому

      M glad that u like my videos, thank you. Subscribe like share 😊

  • @devanshudixit259
    @devanshudixit259 4 роки тому +1

    thanks for help

  • @Nick-cx4rs
    @Nick-cx4rs Рік тому

    when i put recyclerview in swipe refresh layout rv shows nothing geting empty screen

    • @Nick-cx4rs
      @Nick-cx4rs Рік тому

      lol i fixed . Used layout inspector and saw nestedscrollview hiding them in mainactivity idk why i was on fragment.

  • @santhoshpilot9617
    @santhoshpilot9617 4 роки тому

    hi sir when i refresh multiple times rows are getting duplicated. how to avoid the duplication when we do multiple time refresh. only once the data should be added even if we do multiple refreshing.

  • @jivanmainali1742
    @jivanmainali1742 5 років тому

    Sir what if we want it to refresh automatically after data is added to recyclerview

    • @trulymittal
      @trulymittal 5 років тому +2

      Jivan Mainali simply call adapter.notifydatasetchanged()

    • @jivanmainali1742
      @jivanmainali1742 5 років тому

      @@trulymittal sir kindly tell me where to store video if I want to have playlists of video courses in my app.Is it possible using firebase

    • @mafiacodes
      @mafiacodes  5 років тому +1

      yeah its very much possible and that is why we have Firebase Cloud Storage. I am currently running a series on Firebase and I will be covering this Cloud storage.

    • @jivanmainali1742
      @jivanmainali1742 5 років тому

      @@mafiacodes and what about bulk videos like that of tiktok

    • @jivanmainali1742
      @jivanmainali1742 5 років тому

      Sir how can we make a live features in app

  • @ananthkumar7943
    @ananthkumar7943 5 років тому

    How to make multiple recyclerview in single screen like Hotstar , Google play store

    • @mafiacodes
      @mafiacodes  5 років тому +2

      Pretty simple just add a couple of recycler vies inside the main nestedscroll view, if you want will make a video for the same

    • @rajm2671
      @rajm2671 4 роки тому

      You can achieve with one recyclerview, As usual, we create an adapter class with viewholder class Now we extra add an adapter on that viewholder and set parent adapter as RecyclerView.RecycledViewPool, I hope this is helpful for start this process if you have trouble comment on it.

  • @Nebrass_
    @Nebrass_ 3 роки тому

    i can't find swiperefrashlayout

    • @Aejaz-iw5rs
      @Aejaz-iw5rs 2 роки тому +2

      implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
      add it

  • @rajatsonu01
    @rajatsonu01 2 роки тому

    how and where this tutorial is useful.???

  • @vamsi1871
    @vamsi1871 5 років тому

    Make video on sqlite open helper bro

    • @mafiacodes
      @mafiacodes  5 років тому +1

      will be making a video on Room Database, its built on top of sqlite, and you should be using that instead on plain old sqlite openhelper.

    • @vamsi1871
      @vamsi1871 5 років тому

      @@mafiacodes sir i know room data base fully can u tell hot to store images in room data base

    • @mafiacodes
      @mafiacodes  5 років тому

      Its not actually advisable to use db to store images but if you want then you can use blobs column to store OR you can use the base64 (which is a string) representation of the image and store inside any string column

    • @vamsi1871
      @vamsi1871 5 років тому

      @@mafiacodes yes can i have example to store images in inter memory and store reference in sqlite db room

  • @Arman_127
    @Arman_127 2 роки тому

    Подключите субтитры а то я знаю только русский

  • @yesman3442
    @yesman3442 8 місяців тому

    Thanks bro

  • @syedumair3172
    @syedumair3172 4 роки тому +1

    thank you