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.
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
@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.
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
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
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.
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
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????
Explained in the simplest way. Can't be explained in easiest way than this. Thank you Sir. Allah aapko tarakki de. Ameen
Stay blessed. Keep practicing Android
Ameen
Plz if you that java file
Plz i need that
@@Harsh-jw5iz What ?
@@NeatRoots Sir ye recycler view wali file fb pe nahi mil rahi.... Ab kya karu...?
Found your video at the perfect time when I needed the most 😊
Asslam o alaikum sir j mashAllah bht achy lecture thy sir j jazakAllah
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.
Can't understand it
Very nice video.Amjad
Nice information in easy way sir....
Bhai Ksi ke pass RecyclerView Item Click File Hai ???
Thanks sir wo mil Gai ha
Assalam Walikum Nice Video Sir Ji
Sir fb per fe he uplpoad nahe hai
Thank you so much sir , your videos help me allot in making my project
bro ye file kaha hain
Wonderful sir
Sir mera ek question hain.
10 item ke liye 10 scrollview lena parega? Plz ans me??
very good sir
Can we set video on item click listener
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){}
}
thanks vai
Video very good tha👍
Sir plz make a video on firebase UI recyclerview and Firebase recycler adapter with click listener.
Sir humlog ek page se dusre page m Jane k liye cases use kar sakte h, like intent as u use, thanks🙏
Hello Neat Roots. I Cant Find The File. Where Can I Find It????
You can find the file here :- facebook.com/groups/224810251893060/permalink/254052608968824
thanku bro
Thank you brother@@RAZARAZA1818
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
@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.
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..
Weldon sir
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
Ye recycler view wali file to fb pe he hi nahi... Ab kya karun me...?
thanku sir
sir fb page sa file ni mil rahi kindly file ka link b description ma da dan
Sir toast to show ho rha hai, agar mughe click karne par pdf next fragment me show karna hai to kaise kare
Sir Recyclerview me n post ke bad banner ads lagane ke liye sikhaye
Sir, intent m putExtra kis tarah apply hoga
Video main sirf onItemClickListener copy paste code se error aaya full video bnao sir please RecyclerView onItemTouchClickListener per
Bhai wo class file nahi mile group main please share a link
Good
Can't find that clicklistner class jn your group please provide me a link
plz share the link of itemTouchListener class. I can't fond that specific post of your which you mention in the video
Yes even I cant find it
If you got it, can you share?
@@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.
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.
bhai mujhe ye fb wala link pai file nahi mil rahi hai
It is not showing that file on facebook
Woow
Sir on your facebook page there is too many posts then how i Can get that file
Sir aapne Jo on click listener ka code diya plz usko Explain kar diziye
Sir vo Recycile view vali file nahi mil rahi..plzzz suggest me.or link dedo plzz sir
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
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.
Bhai Woh java file ko lane me problem a raha Hai Kya aap yaha par souce code de sakte Hai Kya, please.
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){}
}
@@techcollege3762 thank you
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
yes sir please
Pls Java file description m dedijiye m fb pr nhi hu
Sir ye recycler view wali file fb pe nahi mil rahi.... Ab kya karu...?
Please Anybody send that file to download
its gone from facebook page
Sir, i couldnt find on click listener code on your fb page. kindly share it
Check it on fb group not fb page
Sir aap firebase pr bhi tutorial banao firebase ke bger app development ka mja nhi hai
can anyone share Onitemclicklistener java File here?
Sir agar File wala code serf samjha dete thu acha hota agar ho sake thu plz....
where is the java file ? please share here.
Sir wo file nahi mil rahi
can anyone provide code of RecyclerItemClickListener class
How to set click listner on n numbrr of items??
Sir scrolling activity create hot nahiy
Code folder not found.
i cant find that file on neat roots grp...can someone send me the link
Can we use this method for fragments
of course
@@NeatRoots How
There is getting error saying create constructor in your java file, please do something
Can I connect with you on whatsapp sir ? I really want to learn all this
Just use getContext () where you need to pass context of your activity. That's it
Bhaiya code kha h
Sir pura explain krna chiy tha khud bna k ...ese copy past krne m kuch smjh ni aa rha
When you have engine learn to fix engine in your car rather than start building new engine.
Smart work better than hardwork
Sir sekhna chaty hai .. companies m phuchygy to kese jbab dygy yeh ni bol skty ... Google pr mil jayga
@@sk61-09 Aree bhai iss darr ko apne man se nikalo. Koi tumse puchhane wala nahi hai. Do smart work.
can anyone send me that java file,thanks!
Anybody have this file
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????
ruclips.net/video/JkblErXt1r4/видео.html
Create this app . Hope so you'll got your answer
@@NeatRoots thank you I will soo watch it..... ❤️❤️
sir,,,, facebook p plzz upload mat kriye. not on facebook or use bhi ni krna
what you are muslim please tell me
I am muslim
Yes last main allah hafiz boalta ha aap na nahi suna koi bhi video ka last main dekh liziya neat root ka ok
Amazing sir
Very nice sir
ThankQ sir