Retrofit - Display results in a RecyclerView | Android Studio Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 28

  • @blomiii
    @blomiii ปีที่แล้ว +1

    I can't access IDs because of binding. There's no information on internet and i am stuck at 3:40.

    • @JoseCastillo-df5xw
      @JoseCastillo-df5xw 8 หลายเดือนก่อน

      holder.itemView.rootView.findViewById(R.id.userId_txt).text = myList[position].userId.toString();
      Use this fix my friend!! i stay here for ... 2 week hahaha , and have another comment why the same problem and said this fix.

  • @lucasemboava5935
    @lucasemboava5935 4 ปีที่แล้ว +2

    Great tutorial! Just missed a way to filter this recyclerview with a search bar.

  • @BrunoRibeiro-kz1np
    @BrunoRibeiro-kz1np 3 ปีที่แล้ว +2

    I have a question: how can you access the widget without referencing it as a variable? For instance you just write "userId_txt" at 3:40 and it automatically assume. I've also noticed this in previous videos.
    Btw I've been learning a lot with your tutorials! Thank you!

    • @BrunoRibeiro-kz1np
      @BrunoRibeiro-kz1np 3 ปีที่แล้ว +3

      For instance i had to resort to -> holder.itemView.rootView.findViewById(R.id.tvlist_id).text = myList[position].id.toString()

    • @dvasfhbfgb
      @dvasfhbfgb 3 ปีที่แล้ว +3

      @@BrunoRibeiro-kz1np i guess it's kotlinx synthetics. Try to google it. But it's deprecated right now anyway :) try to learn how to use viewBinding

    • @BrunoRibeiro-kz1np
      @BrunoRibeiro-kz1np 3 ปีที่แล้ว

      ​@@dvasfhbfgb Will do! Thank you for your time!

    • @philiphsinh9214
      @philiphsinh9214 2 ปีที่แล้ว

      My guess is he used the deprecated feature:
      ‘kotlin-android-extensions’
      Best practice now is to use viewbindings.

  • @honggolangromanlang2393
    @honggolangromanlang2393 3 ปีที่แล้ว +1

    Hi, can you explain how to add click listener to item

  • @mauanawest9062
    @mauanawest9062 4 ปีที่แล้ว +3

    Please add Pagination

  • @GuitarreroDaniel
    @GuitarreroDaniel 4 ปีที่แล้ว +3

    Thanks again for another great tutorial! You even made me to finally switch to Kotlin

  • @kirakorunov5407
    @kirakorunov5407 2 ปีที่แล้ว +1

    Tanks bro!

  • @cyberandroidgames6101
    @cyberandroidgames6101 4 ปีที่แล้ว

    please make a tutorial about firestore cloud functions read, show ,write and add

  • @techstudent754
    @techstudent754 4 ปีที่แล้ว

    hello there!
    gosh i was just learning this same thing on lynda
    but some topics are confusing , your example is brief but very practical , also this new video is in kotlin so thank you man
    are you gonna make videos on moshi ? the parsing library thing

    • @techstudent754
      @techstudent754 4 ปีที่แล้ว

      can you do this video in kotlin , shit i don't know java , i started from kotlin , i think i understood 60% , but some weird things itching my brain , i think it's java syntax
      th-cam.com/video/18VcnYN5_LM/w-d-xo.html

  • @pks_bot772
    @pks_bot772 4 ปีที่แล้ว

    Error: recyclerview must not be null. Although the extension plugin costs.
    I am using fragments. What is the problem?

    • @mlazebny
      @mlazebny 4 ปีที่แล้ว +1

      read about fragment lifecycle

    • @mlazebny
      @mlazebny 4 ปีที่แล้ว

      Your code tries to do something with view when View is destroyed or not created

  • @hdkloh
    @hdkloh 4 ปีที่แล้ว +1

    How to save this response in Room database

    • @StevdzaSan
      @StevdzaSan  4 ปีที่แล้ว +4

      You can watch my ROOM play-list here on TH-cam. Also I'm planning a new app development course where ROOM and Retrofit will be included among other things.

    • @hdkloh
      @hdkloh 4 ปีที่แล้ว

      @@StevdzaSan Pls do. Also include retrofit caching. Also include offline functionality in app.

    • @12300michal
      @12300michal 4 ปีที่แล้ว +1

      @@StevdzaSan do you have any recommended material on using room and retrofit together

    • @rogercolque
      @rogercolque 4 ปีที่แล้ว

      @@StevdzaSan waiting for this

  • @pyaesonehan19
    @pyaesonehan19 6 หลายเดือนก่อน

  • @sergeraphaelkrou4025
    @sergeraphaelkrou4025 3 ปีที่แล้ว +1

    Hi sir