Thanks, this trick with interface works on fragment too, smoothly. My app becomes no crash anymore. Thanks a lot for sharing this. Easy and simple.
@dr.shehab Жыл бұрын
All the best
@clarayunanti2402 жыл бұрын
Thank you very much sir. I use Activity, 2 Fragments, and 2 Adapters. I can understand listeners with just a few minutes of watching your video. My problem since 5 days ago is solved now!
@dr.shehab2 жыл бұрын
Excellent! All the best.
@mikaellucas21742 жыл бұрын
Simple and straightforward. Very good, thanks.
@dr.shehab2 жыл бұрын
Thank you.
@andriibibik39 Жыл бұрын
Very clear. I think you are a good programmer ;)
@dr.shehab Жыл бұрын
Glad you think so! I try :)
@aliyoussef32712 жыл бұрын
عاش يصحبي
@seyyedmahdihosseini43953 жыл бұрын
you really help me to understand the procedure of interface listener, thanks a bunch man
@dr.shehab2 жыл бұрын
Welcome.
@rishabhsingh71063 жыл бұрын
You are a lifesaver man
@dr.shehab3 жыл бұрын
Thank you
@dev32694 жыл бұрын
Sir thank you so much, because of this video my error was solved which I am trying to solve from a week
@dr.shehab4 жыл бұрын
All the best.
@tahielgomez Жыл бұрын
really helpfull, thanks
@dr.shehab7 ай бұрын
Thank you and let me know if you have any questions.
@MajorKs7 Жыл бұрын
Thank you very much great video
@dr.shehab Жыл бұрын
You are very welcome
@Bohdan-d7m3 жыл бұрын
Супер, очень полезная информация! Спасибо!
@dr.shehab3 жыл бұрын
I had to translate it :) you are welcome.
@yildiz.mehmetemin3 жыл бұрын
Dear Mohamed, thank you :D
@dr.shehab2 жыл бұрын
You are very welcome
@adanpacheco41853 жыл бұрын
VERY HELPFUL thanks a lot.
@dr.shehab3 жыл бұрын
Glad it was helpful!
@guidobertelli73372 жыл бұрын
What if I want to change something within the same activity? For example I want to Glide an Image or set a TextView view in the principal activity by clicking on one Item of the RecView. In your example it would be like setting a Text down the recView with the name of the currently selected user and it changes text every time you click on a different Item. Thanks in advance for your attention and I will be happy to clarify the question if needed.
@guidobertelli73372 жыл бұрын
I solved it by using an Interface and passing an intent with the data needed
@sahilprajapati61952 жыл бұрын
Hello,i have made new activity just like you have created but how to copy content from previous activity to new activity that we have created
@dr.shehab Жыл бұрын
You have to send the content in an intent as extras.
@tknv3 жыл бұрын
Thanks, it was very helpful. If have a complete code link like an at Github, it would be perfect.
@dr.shehab2 жыл бұрын
Will work on that soon.
@fernandodelgado92783 жыл бұрын
Excelent work, thanks for share!!!
@dr.shehab3 жыл бұрын
Many thanks!
@palakshravagi55183 жыл бұрын
how can we redirect from onclicklistener event on any element in adapter class to fragment
@ganeshgogate62353 жыл бұрын
How to send onpause event to the viewholder from mainactivity
@dr.shehab3 жыл бұрын
Can you please elaborate a bit ?
@desnshanji26154 жыл бұрын
Hello sir supposed the recyclcerview was inside a fragment and you want to set an onclick listener to open a new fragment How do you proceed?
@dr.shehab4 жыл бұрын
You can use the interface to communicate with the outside hosting activity which can trigger the communication with the new fragment.
@desnshanji26154 жыл бұрын
@@dr.shehab Thank you so much sir. Your video helped me to figure it out. I am implementing a chipnavigation bar with fragments. and I will like that when on click of a recyclerview in one of the fragments it also changes the selected item on the chipnavigation. Is it possible?