High quality Android programming courses: In this video I show you how to setup a RecyclerView on Android using Kotlin.

Nguồn:https://u-os.org/

Author

36 Comments

  1. Ricardo Viera Reply

    Hello, great videos, I want to see more videos like this. Many Thanks

  2. That's one of the most COOL tutorials I have ever seen in my life. You are awesome

  3. David Nitzsche-Bell Reply

    6:27 you discuss for about a full minute why your `image` field is declared as a `String`. This is a case where the naming of variables is very important and useful. Call the field `imageURL`; this makes it clear to all, even deep in the middle of some chunk of code, that the variable points to an image somewhere and is not actually the (binary) image file.

  4. David Scammell Reply

    Excellent tutorial – you and your friend over at 'Coding in Flow' are my go to guys for proper tutorials, with the explanations where needed – thank you for the brilliant content!.. Now, just need to hook this up to my Firestore Database, through my Repository and ViewModel and I'll be getting somewhere!! (ahem!) 🙂

    +1 for adding onClick to this RecyclerView!

  5. satinder gill Reply

    bought you membership but unfortunately, most of them are in Java and also few of the API's are not working, but highly recommend if someone interested in JAVa

  6. stephanie ha Reply

    Do you teach how to click inside of the card view?? Really need it xD

  7. leonespartano Reply

    Thanks Mitch. I'm really thankful for all your tutorials. Your form of explaining these complicated topics is wonderful.

  8. David Nitzsche-Bell Reply

    I think it would be more descriptive to call your `image` variable, `imageURL`.

  9. Srdjan Smulja Reply

    HUGE HUGE THANK YOU! Really good tutorial, maybe the best one i saw from Kotlin tutorials. Keep up the good work mate!

  10. I have problems when i have to put the (parent.context), it gives an error, how can i fix it?

  11. I loved your video… Make more.. Beginners like me.. Recommend this post too https://androidride.com/recyclerview-android-simple-tutorial-listview-checkbox-example/

  12. Omid mirrajaee Reply

    ty mitch for tutorial – and i have 2 question
    1 – why use topSpacingItemDecoration? Why not use the xml layer margin
    2- The difference between using this code
    class BlogViewHolder constructor(itemView: View) : RecyclerView.ViewHolder(itemView)
    with
    class BlogViewHolder (val itemView: View) : RecyclerView.ViewHolder(view)

  13. good day, i am getting this error, Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED

    what should i do?please help

  14. Hola, muy buen video, estoy aprendiendo kotlin y este tutorial ha sido el que mas me ha servidor :),,,, tengo una consulta por cierto,,, estuve haciendo unos cambios en el data source para poder obtener la data desde internet y cuando lo ejecuto no pasa nada,, sin embargo cuando le pongo un delay de 2 segundos carga perfecto con la info de internet,, supongo que el problema va por el tema sincrono y asincrono,, entonces,,,sabes alguna forma de hacerlo asincrono para que cargue en background y luego presente los resultados?,, o por ultimo bloquear la app hasta que espere el resultado del GET.

  15. Hi Mitch, first thank you for your help through all your videos !
    Second, could you make a course about Dual Panel fragments in landscape ?
    – RecyclerView in left fragment
    – ItemDetail in right fragement

    So far I didn't find out how to pass data from my recyclerview item to my fragment detail…
    Thanks 🙂

  16. Wasim Safdar Reply

    I am unable to upload images using Glide in this tutorial. Anybody can help?

    W/Glide: Load failed for https://raw.githubusercontent.com/mitchtabian/Blog-Images/master/digital_ocean.png with size [1080×1080]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There was 1 cause:
    java.net.UnknownHostException(Unable to resolve host "raw.githubusercontent.com": No address associated with hostname)
    call GlideException#logRootCauses(String) for more detail
    Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
    There was 1 cause:
    java.net.UnknownHostException(Unable to resolve host "raw.githubusercontent.com": No address associated with hostname)
    call GlideException#logRootCauses(String) for more detail
    Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
    There was 1 cause:
    java.net.UnknownHostException(Unable to resolve host "raw.githubusercontent.com": No address associated with hostname)
    call GlideException#logRootCauses(String) for more detail
    Cause (1 of 1): class java.net.UnknownHostException: Unable to resolve host "raw.githubusercontent.com": No address associated with hostname
    I/Glide: Root cause (1 of 1)

  17. Phil Brighton Reply

    This was very well explained, thanks. I want to create a recyclerview that uses two separate lists / types of data where one set of data follows the other on the same screen. I can combine them into a single list containing the two different data types, but I have been struggling to convert them to display in the two different views . A video covering this would be a godsend to me 🙂

  18. David Greer Reply

    How would the code change if the image was in the drawable folder?

  19. Eltrend company Reply

    I have a small problem the item click listener code I don't know where should l put it and I want if I clicked on the item number 1 I want the app intent me to another layout and so on on the other items and I don't know how to lead to the index to do that I hope you help me in this problem

  20. Thank you! Helped me a lot 🙂

    Looking forward to more Kotlin! 😀

  21. Matija Sokol Reply

    recycler is working without notifyDataSetChanged in submitList method?

  22. Shihab Mohammad Reply

    @codingWitMitch it would be awesome if you post some thing that show how we can wire different views like recycler-views and recycler-view list menu with bottom navigationbar/ or inside fragments

  23. Muhammad Usama Reply

    Select recyclerView item and take information from that to next activity/fragments. Also material design selection. This tutorial is awesome.

  24. Gilson Junior Reply

    Great video! So, I am facing some problems using MediatorLiveData, if you have time, would be great see a video from you about this, thank you my friend

  25. Great job on the Video Mitch, i have watched many your Java videos, you do a great job , I look forward to your Kotlin Videos as a beginner learning. I would like to see recyclerview with numbers and dates from a user and some adding and subtracting with a recyclerview like a balance from numbers either being added or subtracted.

Write A Comment