CardView in RecyclerView Android Studio Kotlin Tutorial

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 44

  • @dasha_butuzova
    @dasha_butuzova 5 днів тому

    Three years later it's still usefull. thank you!

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

    I just have to say this tutorial was really helpful. Obviously I had to adapt it to my own context and pause and rewind the video a tonne, but after a few days of wrestling with it I have got something I'm now happy with thank you!

  • @05jdl
    @05jdl Місяць тому

    It Helped me a lot ! thanks !!

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

    Thank you Cal Sir . This video is very helpful for us.

  • @Michael-x2e
    @Michael-x2e 6 місяців тому

    Thank you, this tutorial was very helpful

  • @myimac8257
    @myimac8257 9 місяців тому +1

    Hey Cal great tutorial. Thank you! I was wondering if you could help me out. How would I allow the user to pick an image from their phone's gallery into the card view (I've done this already) but I want to be able to save these images and re-load them when the app re-starts. I can't find that info anywhere. I tried SharedPreferences it works for text but I haven't been successful with images. (btw I only have a max. of 6 images in my app) Your help would be greatly appreciated. Thx so much!

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

    sorry if i'm missing something, but where was the cardCellBinding written? couldn't find it, even though it's required around 5:21.

    • @dasha_butuzova
      @dasha_butuzova 5 днів тому

      for people who have the same question. I found that in your Gradle file you need to write both dataBinding=true and viewBinding=true. Took a long time to figure it out, so give it a try if you have the same problem :)

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

    Ever thankful.

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

    Thanks for the video helped me solve something quickly. I still need to work on the recycler view from loading new cards everytime. This causes some duplication on the recycler view.

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

    Nice video bro! helped me a lot

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

    Is there a way to change the string colors based on what is read? For example if you had 2 of the same authors in the list, can you code the recycler to change the text color to blue?

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

    Very helpful!

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

    Good job ! A little too fast-paced for me, though, even at .75 speed XD

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

    hello thanks for the video, how can we fetch the data from MySQL db

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

    superb video!

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

    can you show us how to get data from API in this CardView in RecyclerView

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

      you can use gson and picasso for the images

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

    tell me which property is responsible for the number of columns

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

    Hello, thanks for the video :)
    Do you know why / how to prevent the cards from duplicating when pressing back and reopening the app? (or also while changing from dark to light mode while the app is open).
    Fixed it for now clearing the list (that we populate in onCreate) in onBackPressed but it doesn't seem like the best idea to empty and re-populate the list, or am I wrong?

    • @CodeWithCal
      @CodeWithCal  3 роки тому +2

      I would do something like this.
      Declare a class variable boolean in the Main activity
      var firstload = true.
      then wrap the populateBooks function in something like this
      if(firstload)
      {
      populateBooks()
      firstload = false
      }

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

    Hello, thanks for the video and I have try it, but first time I do it with your tab view tutorial first and success and then i try to combine this recycler view with tab bar view but unfortunately after combining,i found that my page for listing all the book cannot slide down for viewing more book. Did i have any solution for that?

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

      Ahh what you are trying to do sounds possible, I wont debug your code. keep trying. :)

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

    I plan to use the code..in an app...tips and suggestions on what we should take care of will be useful... also I am trying to include a searchview...any tips on this/?

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

      If you have a forum(blog) page - or here, we can initiate a discussion so that more can participate..

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

    Thanks! 🤠

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

    Hello, the video helped me a lot, I have a question in case I have a lot of text, the part of the description, how do I scroll down and keep reading, because it won't let me slide down

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

      Hi you want to nest the detail view in a scroll view

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

      @@CodeWithCal
      Yes, since I want to put more text to the description part

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

    Hi, I have a little issue, every time a click on a book it send the same ID for all, any clue what can be going wrong

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

      Something wrong with the intent put extra or the reading of said extra

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

      @@CodeWithCal well It Is weird cos' once i re-ordered the way the list Is filled allá came ordered and go well, thanks for answer

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

    Shall we code with Cal , c'monn!

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

    Hello Cal! Your video's helping me so much. I'm trying to do the same example with some contacts but a strange reason it doesn't show me the information from the First Activity to Second Activity that I have in my contacts list :'(

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

      Thanks 😊
      In this example we pass the objectid via an intent put extra. Is there a bug in your code related to that?

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

      @@CodeWithCal Helloooo!!! I never knew what my app didn't work, but finally I could resolve that bit problem implementing Parcels. That's strange but it works. Thanks so much. I continue watching your videos ;) Happy Halloween!

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

      Happy Halloween 🎃

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

    actuallly its to good, but maybe next time u need to explain a video without urge to pee 😂 its too fukeeng fast broo 🙃

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

      Haha personally I not a fan of unnecessarily long tutorials, but its true i do go to fast at times

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

    Why recycleview have to be so complicated ? Python is much simpler.

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

    Thanks for video but you are so fast