onItemTouchListner on RecyclerView - #12

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 104

  • @mdmuzammil4546
    @mdmuzammil4546 4 года назад +7

    Explained in the simplest way. Can't be explained in easiest way than this. Thank you Sir. Allah aapko tarakki de. Ameen

    • @NeatRoots
      @NeatRoots  4 года назад +4

      Stay blessed. Keep practicing Android

    • @androdeveloper7261
      @androdeveloper7261 4 года назад +2

      Ameen

    • @Harsh-jw5iz
      @Harsh-jw5iz 4 года назад

      Plz if you that java file
      Plz i need that

    • @androdeveloper7261
      @androdeveloper7261 4 года назад

      @@Harsh-jw5iz What ?

    • @d.modi-a10i04k
      @d.modi-a10i04k 3 года назад +1

      @@NeatRoots Sir ye recycler view wali file fb pe nahi mil rahi.... Ab kya karu...?

  • @hanisingh8259
    @hanisingh8259 Год назад +2

    Found your video at the perfect time when I needed the most 😊

  • @azkabashir9604
    @azkabashir9604 4 года назад +4

    Asslam o alaikum sir j mashAllah bht achy lecture thy sir j jazakAllah

  • @umairbashir7661
    @umairbashir7661 3 года назад +7

    why you couldn't explain the code present in the class "RecyclerItemClickListener" ? without having knowledge of this code how we can use it blindly in the "MainActivity" class? Sir, you should explain it and write it in front of us so we can understand it and then practice it.

  • @Amjad_Sajjad329
    @Amjad_Sajjad329 3 года назад +2

    Very nice video.Amjad

  • @jiminaaa1993
    @jiminaaa1993 4 года назад +2

    Nice information in easy way sir....

  • @abrarulislam3873
    @abrarulislam3873 2 года назад +2

    Bhai Ksi ke pass RecyclerView Item Click File Hai ???

  • @mrirfan7118
    @mrirfan7118 2 года назад +1

    Thanks sir wo mil Gai ha

  • @syedmubeen8082
    @syedmubeen8082 2 года назад

    Assalam Walikum Nice Video Sir Ji

  • @RobinaGul-y8p
    @RobinaGul-y8p Год назад +2

    Sir fb per fe he uplpoad nahe hai

  • @yuvrajkhinchi8218
    @yuvrajkhinchi8218 3 года назад +2

    Thank you so much sir , your videos help me allot in making my project

  • @Vikas-pq4bj
    @Vikas-pq4bj 4 года назад +2

    Wonderful sir

  • @kidstvbangla2815
    @kidstvbangla2815 2 года назад +1

    Sir mera ek question hain.
    10 item ke liye 10 scrollview lena parega? Plz ans me??

  • @sensibleguy777
    @sensibleguy777 4 года назад +2

    very good sir

  • @invoketowrite2554
    @invoketowrite2554 2 года назад +2

    Can we set video on item click listener

  • @hardikjade7528
    @hardikjade7528 4 года назад +6

    package com.student.counselling.Utilities;
    import android.content.Context;
    import android.support.v7.widget.RecyclerView;
    import android.view.GestureDetector;
    import android.view.MotionEvent;
    import android.view.View;
    public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
    private OnItemClickListener mListener;
    public interface OnItemClickListener {
    public void onItemClick(View view, int position);
    public void onLongItemClick(View view, int position);
    }
    GestureDetector mGestureDetector;
    public RecyclerItemClickListener(Context context, final RecyclerView recyclerView, OnItemClickListener listener) {
    mListener = listener;
    mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
    @Override
    public boolean onSingleTapUp(MotionEvent e) {
    return true;
    }
    @Override
    public void onLongPress(MotionEvent e) {
    View child = recyclerView.findChildViewUnder(e.getX(), e.getY());
    if (child != null && mListener != null) {
    mListener.onLongItemClick(child, recyclerView.getChildAdapterPosition(child));
    }
    }
    });
    }
    @Override public boolean onInterceptTouchEvent(RecyclerView view, MotionEvent e) {
    View childView = view.findChildViewUnder(e.getX(), e.getY());
    if (childView != null && mListener != null && mGestureDetector.onTouchEvent(e)) {
    mListener.onItemClick(childView, view.getChildAdapterPosition(childView));
    return true;
    }
    return false;
    }
    @Override public void onTouchEvent(RecyclerView view, MotionEvent motionEvent) { }
    @Override
    public void onRequestDisallowInterceptTouchEvent (boolean disallowIntercept){}
    }

  • @nironjonpal8025
    @nironjonpal8025 2 года назад +1

    thanks vai

  • @priteeharmale7488
    @priteeharmale7488 4 года назад +1

    Video very good tha👍

  • @Sourav_8089
    @Sourav_8089 2 года назад +1

    Sir plz make a video on firebase UI recyclerview and Firebase recycler adapter with click listener.

  • @rashmisharma8574
    @rashmisharma8574 2 месяца назад

    Sir humlog ek page se dusre page m Jane k liye cases use kar sakte h, like intent as u use, thanks🙏

  • @1RORONOA_ZORO
    @1RORONOA_ZORO 4 месяца назад +1

    Hello Neat Roots. I Cant Find The File. Where Can I Find It????

  • @rudrapratapsingh6859
    @rudrapratapsingh6859 3 года назад +2

    You can find the file here :- facebook.com/groups/224810251893060/permalink/254052608968824

  • @NehaKumari-rk3em
    @NehaKumari-rk3em 4 года назад +5

    Sir if my recycle view contain more than 500 hundred item list then how can I add listener each item using switch..case
    It means it is recommended approach or not sir..
    Due to this The source code of length is increased and performance is down..
    Please sir make the videos on this topic and reply it as soon possible..I Hope U reply it

    • @feezankhattak1573
      @feezankhattak1573 4 года назад +1

      @Aftab Soomro That sources is for storing data, not the style to show on the screen. The recycler view simply takes data and makes its view and then recycle that view.

  • @dtechtricks213
    @dtechtricks213 3 года назад

    Can we use on item touch dynamically. Bcz sometime we need a lots product list and show their details accordingly. So switch will be to difficult..

  • @meharjunaid49
    @meharjunaid49 4 года назад +1

    Weldon sir

  • @techcollege3762
    @techcollege3762 4 года назад +2

    in adapter we use onclicklistner on holder there we can also perform different activities on different item while you telling that we can't perform kindly clear please

  • @d.modi-a10i04k
    @d.modi-a10i04k 3 года назад +1

    Ye recycler view wali file to fb pe he hi nahi... Ab kya karun me...?

  • @bhagyadharsahoo5691
    @bhagyadharsahoo5691 4 года назад +1

    thanku sir

  • @tamoorsarwar7880
    @tamoorsarwar7880 3 года назад +1

    sir fb page sa file ni mil rahi kindly file ka link b description ma da dan

  • @rosegoldtelefilms2359
    @rosegoldtelefilms2359 4 года назад +1

    Sir toast to show ho rha hai, agar mughe click karne par pdf next fragment me show karna hai to kaise kare

  • @rosegoldtelefilms2359
    @rosegoldtelefilms2359 4 года назад +2

    Sir Recyclerview me n post ke bad banner ads lagane ke liye sikhaye

  • @muhammadwaqas3056
    @muhammadwaqas3056 3 года назад +1

    Sir, intent m putExtra kis tarah apply hoga

  • @khabylam00
    @khabylam00 3 года назад +2

    Video main sirf onItemClickListener copy paste code se error aaya full video bnao sir please RecyclerView onItemTouchClickListener per

  • @musicstand997
    @musicstand997 3 года назад +1

    Bhai wo class file nahi mile group main please share a link

  • @shootingvolleyball2285
    @shootingvolleyball2285 4 года назад +1

    Good

  • @ijazkhanniazi800
    @ijazkhanniazi800 2 года назад

    Can't find that clicklistner class jn your group please provide me a link

  • @feezankhattak1573
    @feezankhattak1573 4 года назад +1

    plz share the link of itemTouchListener class. I can't fond that specific post of your which you mention in the video

    • @arronstone6892
      @arronstone6892 4 года назад +1

      Yes even I cant find it
      If you got it, can you share?

    • @feezankhattak1573
      @feezankhattak1573 4 года назад

      @@arronstone6892 you can go to its Facebook group and there go to files instead of all option, then there you will find that specific file.

  • @souravsaini8334
    @souravsaini8334 4 года назад +1

    sir what about if there are number of views. We can't write code for each view with switch case. Please give any solution via reply.

  • @waleedkaleem4994
    @waleedkaleem4994 3 года назад +1

    bhai mujhe ye fb wala link pai file nahi mil rahi hai

  • @Harsh-jw5iz
    @Harsh-jw5iz 4 года назад +2

    It is not showing that file on facebook

  • @iamsatyamsaurav
    @iamsatyamsaurav Год назад

    Woow

  • @BPBlackpanther
    @BPBlackpanther 2 года назад +1

    Sir on your facebook page there is too many posts then how i Can get that file

  • @_naushad_ahmad
    @_naushad_ahmad 4 года назад +1

    Sir aapne Jo on click listener ka code diya plz usko Explain kar diziye

  • @panchalravi5838
    @panchalravi5838 3 года назад +1

    Sir vo Recycile view vali file nahi mil rahi..plzzz suggest me.or link dedo plzz sir

  • @surajsuryawanshi7835
    @surajsuryawanshi7835 3 года назад

    Sir one question
    Inside on item click if I want to send data of respected position to whatsapp or anywhere using implicit intent then can I use position.setOnClickListner

  • @anaghbasak
    @anaghbasak 3 года назад

    The downloaded file is a HTML file. Though it has a .java extension, the file starts with tag. I cannot really get around and find the piece of code shown in the video in file.

  • @ayankumar1858
    @ayankumar1858 4 года назад +2

    Bhai Woh java file ko lane me problem a raha Hai Kya aap yaha par souce code de sakte Hai Kya, please.

    • @techcollege3762
      @techcollege3762 4 года назад +3

      package com.domain.logino2o.classes;
      import android.content.Context;
      import android.view.GestureDetector;
      import android.view.MotionEvent;
      import android.view.View;
      import androidx.recyclerview.widget.RecyclerView;
      public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
      private OnItemClickListener mListener;
      public interface OnItemClickListener {
      public void onItemClick(View view, int position);
      public void onLongItemClick(View view, int position);
      }
      GestureDetector mGestureDetector;
      public RecyclerItemClickListener(Context context, final RecyclerView recyclerView, OnItemClickListener listener) {
      mListener = listener;
      mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
      @Override
      public boolean onSingleTapUp(MotionEvent e) {
      return true;
      }
      @Override
      public void onLongPress(MotionEvent e) {
      View child = recyclerView.findChildViewUnder(e.getX(), e.getY());
      if (child != null && mListener != null) {
      mListener.onLongItemClick(child, recyclerView.getChildAdapterPosition(child));
      }
      }
      });
      }
      @Override public boolean onInterceptTouchEvent(RecyclerView view, MotionEvent e) {
      View childView = view.findChildViewUnder(e.getX(), e.getY());
      if (childView != null && mListener != null && mGestureDetector.onTouchEvent(e)) {
      mListener.onItemClick(childView, view.getChildAdapterPosition(childView));
      return true;
      }
      return false;
      }
      @Override public void onTouchEvent(RecyclerView view, MotionEvent motionEvent) { }
      @Override
      public void onRequestDisallowInterceptTouchEvent (boolean disallowIntercept){}
      }

    • @dhaneshchandwani1975
      @dhaneshchandwani1975 3 года назад

      @@techcollege3762 thank you

  • @mohansingh9303
    @mohansingh9303 4 года назад +4

    Sir , please upload file on drive and share with us and please please please make a video what is meaning of that codes ,
    Your tutorial was 98percentage , please complete it .
    And on fb page not getting file itemclick listner

  • @mohammadsaqib8639
    @mohammadsaqib8639 3 года назад +1

    Pls Java file description m dedijiye m fb pr nhi hu

  • @d.modi-a10i04k
    @d.modi-a10i04k 3 года назад

    Sir ye recycler view wali file fb pe nahi mil rahi.... Ab kya karu...?

  • @zoomtechallahabad3756
    @zoomtechallahabad3756 3 года назад +1

    Please Anybody send that file to download
    its gone from facebook page

  • @sidrahameed8564
    @sidrahameed8564 3 года назад +1

    Sir, i couldnt find on click listener code on your fb page. kindly share it

    • @NeatRoots
      @NeatRoots  3 года назад

      Check it on fb group not fb page

  • @Vikas-pq4bj
    @Vikas-pq4bj 4 года назад +1

    Sir aap firebase pr bhi tutorial banao firebase ke bger app development ka mja nhi hai

  • @syedbasit6075
    @syedbasit6075 3 года назад +1

    can anyone share Onitemclicklistener java File here?

  • @muhammadshariq6549
    @muhammadshariq6549 4 года назад +1

    Sir agar File wala code serf samjha dete thu acha hota agar ho sake thu plz....

  • @syedbasit6075
    @syedbasit6075 3 года назад +1

    where is the java file ? please share here.

  • @mrirfan7118
    @mrirfan7118 2 года назад +1

    Sir wo file nahi mil rahi

  • @keshavkumarpurani6462
    @keshavkumarpurani6462 Год назад

    can anyone provide code of RecyclerItemClickListener class

  • @ijazkhanniazi800
    @ijazkhanniazi800 2 года назад

    How to set click listner on n numbrr of items??

  • @priteeharmale7488
    @priteeharmale7488 4 года назад +1

    Sir scrolling activity create hot nahiy

  • @aaronfernandes4688
    @aaronfernandes4688 3 года назад

    Code folder not found.

  • @rameezkhan5712
    @rameezkhan5712 2 года назад

    i cant find that file on neat roots grp...can someone send me the link

  • @rishabhgola
    @rishabhgola 4 года назад

    Can we use this method for fragments

    • @NeatRoots
      @NeatRoots  4 года назад

      of course

    • @rishabhgola
      @rishabhgola 4 года назад

      @@NeatRoots How

    • @rishabhgola
      @rishabhgola 4 года назад

      There is getting error saying create constructor in your java file, please do something

    • @rishabhgola
      @rishabhgola 4 года назад

      Can I connect with you on whatsapp sir ? I really want to learn all this

    • @NeatRoots
      @NeatRoots  4 года назад

      Just use getContext () where you need to pass context of your activity. That's it

  • @Grandmaster..
    @Grandmaster.. 9 месяцев назад +1

    Bhaiya code kha h

  • @sk61-09
    @sk61-09 4 года назад +1

    Sir pura explain krna chiy tha khud bna k ...ese copy past krne m kuch smjh ni aa rha

    • @NeatRoots
      @NeatRoots  4 года назад

      When you have engine learn to fix engine in your car rather than start building new engine.
      Smart work better than hardwork

    • @sk61-09
      @sk61-09 4 года назад

      Sir sekhna chaty hai .. companies m phuchygy to kese jbab dygy yeh ni bol skty ... Google pr mil jayga

    • @kishlayraj4799
      @kishlayraj4799 4 года назад

      @@sk61-09 Aree bhai iss darr ko apne man se nikalo. Koi tumse puchhane wala nahi hai. Do smart work.

  • @adnanmalik65901
    @adnanmalik65901 3 года назад

    can anyone send me that java file,thanks!

  • @Anshukumar-pd8ur
    @Anshukumar-pd8ur 2 года назад

    Anybody have this file

  • @feezankhattak1573
    @feezankhattak1573 4 года назад +1

    Again the question is what if I have thousands of Items inside the recycler view, then using a switch statement is the worst case of my program. Your work is professional but you can't reply and don't answer me. why????

    • @NeatRoots
      @NeatRoots  4 года назад +1

      ruclips.net/video/JkblErXt1r4/видео.html
      Create this app . Hope so you'll got your answer

    • @feezankhattak1573
      @feezankhattak1573 4 года назад

      @@NeatRoots thank you I will soo watch it..... ❤️❤️

  • @PriyaSingh-ul4hl
    @PriyaSingh-ul4hl 3 года назад

    sir,,,, facebook p plzz upload mat kriye. not on facebook or use bhi ni krna

  • @shehrozarshad9857
    @shehrozarshad9857 2 года назад +1

    what you are muslim please tell me

  • @yusufsameemansari2279
    @yusufsameemansari2279 4 года назад +1

    Amazing sir

  • @riteshsatardekar5179
    @riteshsatardekar5179 3 года назад +1

    Very nice sir

  • @priteeharmale7488
    @priteeharmale7488 4 года назад +1

    ThankQ sir