RecyclerView Click Listener Kotlin(best and easiest way)

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

КОМЕНТАРІ • 42

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

    Thank you very much, I watched a huge amount of material on the topic in two days, and fortunately I met your channel. in this video found the answers to all questions. Thank you, continue to please us.

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

      Thank you. This means a lot to me

  • @alanw4810
    @alanw4810 4 роки тому +3

    Thank you! works with fragments too.

  • @kezileo
    @kezileo 4 роки тому +3

    you just saved me alot bro. Thanks for this

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

    Thanks a lot... I solve a problem by this video..

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

    Thank you bro. It's very helpful to my project

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

    Congratulations for the video. It helped me a lot.

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

    Thanks a lot

  • @C0DFR3AK11
    @C0DFR3AK11 4 роки тому +5

    Anyway to do this with a fragment. Passing the data from a fragment to a fragment?

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

      I have a upcoming tutorial on MVVM, there I will use Fragment and Navigation component for RecyclerItem click listner

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

    Thank you. That helped me get it working.

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

    Nice video, just what i needed

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

    Thank you so much. it worked!!!

  • @1000JMP1
    @1000JMP1 4 роки тому

    Thanks Munir. You has been helpful!!!

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

    Thank you so much for your effort.

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

    Thank about this video..
    maybe you can try to make theme to light then darcula mode for android studio.

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

    Thank you so much sir

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

    Thank you

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

    I think that solution is good for java, in Kotlin You can pass function from activity, so there is no need to use interface.

  • @ЛерЛерович
    @ЛерЛерович 4 роки тому

    God job, Munir, tkanks!

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

    Thank you sir,

  • @vaibhav.chopade
    @vaibhav.chopade 4 роки тому +1

    Thanks a lot... :)

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

    How about if I want to click on a recyclerview while using FirestoreRecyclerOptions? Which lines of codes should I change?

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

      I have not used FirestoreRecyclerView till now. The process should be similar. Give me some time, I will use it and hopefully get back to you with answers.

  • @jasur.tech101
    @jasur.tech101 3 роки тому

    I'm getting this error: Type parameter bound for T in fun setContentView(p0: Activity, p1: Int): T!
    is not satisfied: inferred type ActivityArticleBinding! is not a subtype of ViewDataBinding!

  • @Milan-iw2kr
    @Milan-iw2kr 4 роки тому +1

    But what if I want all my other pages to be completely different? So if I click on item1 within my recyclerview, it takes me to a new activity/fragment where I have for example a list of courses. And when I click on item2 on the main page's recycleview, then it takes me to another page with a very different layout and stuff.
    Is there an easy way to do it?

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

      This won't tough to implement. In this particular case it is better to use any database where there will be relations between your "subject" and "courses". You are gonna have 2 different activities/fragments containing different recycleviews. For example when a user click on any item of "subject" recyclerview the recyclerview in the "courses" activity/fragment will appear depending upon the already existent relation between Subject and Courses. You will just reuse that "course" recyclerview. ---- Let me know if it helps you.

    • @Milan-iw2kr
      @Milan-iw2kr 4 роки тому

      @@MunirHoque Thanks, I'll try :)

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

    error: Only safe or non null assserted calls are allowed on a nullable receiver of type String?. error line: image_car.setImageResource(getIntent().getStringExtra("CARLOGO").toInt())

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

    on detailsactivity i got null error, on the image_cars.setImage.... .toInt()

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

    I'll try it!

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

    where ActivityCarsDetailBinding?

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

    What is your approach to add item click listener on Recycler View? Do you have any better solutions, let me know by commenting below.

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

    thanku sir

  • @সময়েরপথিক
    @সময়েরপথিক 4 роки тому +1

    Vaiya contain gulo bangla korle valo hoy amder bujte subida hobe

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

      I understood the situation, I am planning to arrange some webinar on Bangla. Please stay connected, and let me know which parts you want in Bangla language.

    • @সময়েরপথিক
      @সময়েরপথিক 4 роки тому +1

      Sir, from now on, we have the advantage of understanding all the videos because we are many people who do not understand English as we can understand in Bengali video so if you made Bengali video then it would be great and yes your videos are very good and very helpful.

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

      প্লিজ আমাদের ফেসবুক গ্রুপ এ লাইক দিয়ে একটিভ থাকুন m.facebook.com/groups/545337292987590/

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

    "best and easy way" (20 min video duration) . -____-