Finally someone who explains it properly and doesn't create 15 classes and interfaces for a click listener... Thanks😁
@Sydewinder890
2 жыл бұрын
Still a better explanation than my pre-recorded lecture that we have been using since 4 years ago
@fctvlthq
Жыл бұрын
Thank you! When stackoverflow doesnt help or only offers deprecated information... KZitem helps! You are the best!
@rungxanh2901
Жыл бұрын
Thank you very much man! Efficient and easy to understand!
@rohitsinha1092
6 ай бұрын
thanks man saves a ton of hassle and works like a charm truly helpful
@edgaralexis9738
2 жыл бұрын
Excelent Explanation!!! Thank you so much. You're brilliant
@pavolmotyl3232
2 жыл бұрын
Man, great video! Helped me so much. Thanks
@evangelistar
8 ай бұрын
Great video! Easy to understand. Thank you!
@dimalag07
Жыл бұрын
pure gold! Thank you
@stillpickinganame5350
10 ай бұрын
Great video as always!! Thank you man❤
@Anushkai1
Ай бұрын
Thank You. Good Explanation
@rydzu98
4 ай бұрын
thx bro, finally someone who can it simply explain
@andresmonagas7662
2 жыл бұрын
Man, you make such good content!
@AryanSingh-zv5ch
Жыл бұрын
Thanks man first video that really helped
@dasahead33
2 жыл бұрын
Great explanation. Worked for me
@SwainerGamer
8 ай бұрын
You have helped me immensely thank you very much!
@arpitagupta5834
Жыл бұрын
Really Good! Keep making more such videos..
@mastertareas
2 жыл бұрын
gracias crack me sirvio mucho. Saludos desde Colombia
@illidan1400
10 ай бұрын
this is special, thanks a ton
@TarunTejaGurajada
Жыл бұрын
Thank you for helping me.
@fouadsaid5093
Жыл бұрын
you are a legend bro !
@haidarjpr8754
Жыл бұрын
Thanks bro, its help me a lot
@SimranKaur-fc4hn
2 жыл бұрын
You've made it quite easy......
@haidarjoo9055
7 ай бұрын
thanks a lot sir 😁
@mobiledevloperroadtopro
Жыл бұрын
Perfect Job
@mohammedel6420
2 жыл бұрын
good content i understand the concept even don't work for me, but realy understand a lot
@surajbaranwal56.
Жыл бұрын
Nice explanation 👍
@dashcode2892
Жыл бұрын
Muy bueno, me sirivio!. Crack
@TimesShortVideoChannel
2 жыл бұрын
nice sir, I salute you
@yakupakdas6028
2 жыл бұрын
thx it's too helpful
@TTiTTiMaN
Жыл бұрын
helped me so much
@platinumphonesandcomputers
2 жыл бұрын
Thank you
@brayammatias4832
Жыл бұрын
Eres la mera vrga mijo, muchas gracias
@yunoletmehaveaname
Жыл бұрын
Do you have a way to do this between fragments in an activity?
@burakpmk
2 жыл бұрын
Thank u so much This video very help me with my university project
@PracticalCoding
2 жыл бұрын
That's great to hear!
@pragyanshreedas23594
2 жыл бұрын
please keep posting you are doing greate job and deserve more likes as you explain really well
@bestoftheinternet3421
2 жыл бұрын
thanks!
@twu588
Жыл бұрын
I put recyclerView on a dynamic layout container , layout.addView(), then "click" is "invoke interface on a null object reference", please help!
@mobiledevloperroadtopro
Жыл бұрын
thanks bro u save me)))))))))))))))
@jmsanchez5631
Жыл бұрын
Where did you get the add method for your model class? You didn't even code it in the class itself
@The_Developer7
2 жыл бұрын
Bro please help In Android studio there is an error how to solve it ? APPT: error: resources drawable/xyz not found.
@olddirty4589
10 ай бұрын
is there a video for the the last thing u did? how to swap to a new activity?
@adityarajsinhchauhan7151
Жыл бұрын
I getting error in main acitivity adapter where tour error is gone by writing this my is not going and it is sating to create recyclerview interface then making it null
@khawajahamdanahmad677
Жыл бұрын
I cant put this in parameter it is giving me red line in this in adapter parameter in out main activity what should I do
@elgimcadiwitan6767
Жыл бұрын
how to solve that get method u put in putextras? it says cant solve method?
@dgomesreal
2 жыл бұрын
Is it possible to retrieve data from Firebase?
@RandyTata-zy2qg
Жыл бұрын
I like your video. They are very good and easy to understand. Please can you do a video on a PDF app. That an app that has PDF and when you click on it you can see the contain of the pdf
@chuashanjing2261
2 жыл бұрын
How do i add a searchView in this recycler view?
@unatteksen1884
Жыл бұрын
ABİM ÇOK TAŞAKLISIN
@bokzruales4056
2 жыл бұрын
Where did you put the description of each elements? In another xml file? Sorry I'm still learning mobile dev.
@Srimath
2 жыл бұрын
Hey if it's on firebase it will be the best
@williamgomez6226
2 жыл бұрын
Quality videos, thank you so much. Are you using an API to retrieve the molecules data? Can you show us how to do that? Thank you again!!
@PracticalCoding
2 жыл бұрын
Actually, I'm not using an API. I got the descriptions from the internet and the names/abbreviations from my biochem book. The vector images of the molecules were made in Adobe Illustrator. I'm gonna be using them in an app I'm working on so probably won't be releasing them😬 Thought it would be cool to use them rather than the default vectors that come with Android Studio. Little different than what everyone else is doing on KZitem and it's more of a real-world example I think.
@ghadarashwan8687
2 жыл бұрын
Please I need to know how to make the second activity
@abdulrahman-hr1cx
2 жыл бұрын
From where can i get these pictures?
@muztabarafid
Жыл бұрын
Could you please add searching option in this app
@musiclamat
Жыл бұрын
good
@ali_x1917
2 жыл бұрын
🔥Great video but I use a Fragment instead of Activity and when i pass the parameter "recyclerView Interface" as "this" show as error What do you think? or what is the alternative of this in Fragment Situation
@sleepall4025
2 жыл бұрын
If your using kotlin then you could add activity instead of this or getActivity().
@nickynault812
Жыл бұрын
I am so confused on the very last part where you're putting all the different pages' info on one activity... any way you could go more in depth with me? Struggling for school :(
@capt.cacksparrow9224
Жыл бұрын
How to open a pdf when clicked on a recycler view item?
@schoellhorn
5 ай бұрын
6:36 what should I use, I couldnt understand it
@user-lh4dd4of4s
Жыл бұрын
hello what if i just want the selected item to show a toast message and not a new activity how do i do that
@jonispatented
Жыл бұрын
Just make a toast message in the click listener, instead of a new intent.
@jabseraseyfe2598
Жыл бұрын
How we add onclick listner
@ratulmondal7154
Жыл бұрын
what about json object?
@aidenfau3209
Жыл бұрын
hi, i get error in int pos = getAdapterPosition();, its on red and nothings work
@Purpelxd
Жыл бұрын
i got a simillar problem did you solve yours? when i want to write "intent.putExtra("NAME",ProductsModel.get(position).getname);"the .get is in red
@pragyanshreedas23594
2 жыл бұрын
I would like to ask how to do the same while using jet pack lib binding ?????????????????????????????????????????????????????????????????
@Ron_Baukanski
Жыл бұрын
Hey dude, is there any way to help?
@user-ji4nk8wd5o
3 ай бұрын
Can you create a video on how you create a button in an item? Please and thank you
@leemajelifa5489
Жыл бұрын
Hi sir, how to write code for fragment instead of activity?
@huutienang7600
Жыл бұрын
I doesn't find solution for that, so i only call setOnClick for the layout of item
@OP-pv6un
Жыл бұрын
what if there is SEARCHVIEW??
@amrkeefa4966
2 жыл бұрын
Good work but does this way better than itemCallback ?
@PracticalCoding
2 жыл бұрын
I'm not sure where I saw this on the Android Developers page but from what I understand, you're supposed to handle what happens in the onClickListener from your activity and use a callback implementation using an interface. So in the video, we passed the interface to our adaptor and from the adaptor, we were able to call the callback function when an item was clicked because we set an onClickListener to each of our itemViews. Did that answer your question? I'm not entirely sure what you mean by "itemCallback". Maybe we're talking about the same thing?
@febieclintlapera3788
2 жыл бұрын
Anyone here who has an issue in clicking an item in the recyclerview twice to work the setOnlClickListener on the adaptter class?
@PracticalCoding
2 жыл бұрын
What do you mean by clicking an item twice? I don't think I fully understand the question
@mulleryeshambel7360
Жыл бұрын
man please send me the source code i need it so urgently
@jarell2805
2 жыл бұрын
how to add the additional information for the next activity, Sir? please we need a tutorial 🥺
@Sydewinder890
2 жыл бұрын
I just typed the code from the explanation and it works
@jarell2805
2 жыл бұрын
@@Sydewinder890 it also worked on me, but can't quite follow how to put an extra description, i had my data stored in the string. did u add the additional textview in the adapter? kinda confusing
@emantahir338
2 жыл бұрын
bro, may we get this project's source code ❣❣
@AgentsoloOG
2 жыл бұрын
did you find it
@medjl6083
2 жыл бұрын
Recyclerview inside fragment, to display item in another fragment is not documented in google and it is not explain in youtube !!!!!!!!!
@user-tq3zn1wm1k
Жыл бұрын
But don't forget to add in Manifest new Activity.
@desairajveersinh5837
4 ай бұрын
hi sir where are you frome
@juliusgaldones5048
2 жыл бұрын
why you skip coding?
@samirdesigner3324
2 жыл бұрын
thank you pls upload this code ):
@PracticalCoding
2 жыл бұрын
I'll get on it!
@sameerahmad4746
Жыл бұрын
@@PracticalCoding did you upload it? i need it urgetly
@born-in-september
2 жыл бұрын
i hate java interfaces, I prefer to use intent & broadcast methodology...
@shoaibalam7126
10 ай бұрын
time waste
@chugisan6847
2 жыл бұрын
You showed all the steps but didn't clarify the last ones. If you don't want others to be able to use what you teach, just don't post videos for views. And what is up with you showing such a zoomed-in portion of your code? It's very difficult to follow.
@zexer0_047
Жыл бұрын
Nice Video..Uh How do you do the same thing but with opening the information in a fragment instead of switching activty ?
@mihaelpurar6317
Жыл бұрын
Can someone help me i do everything as in video but i still get this error "error: not an enclosing class: RecyclerViewInterface myAdapter = new MyAdapter(ItemView.this, userArrayList, RecyclerViewInterface.this);" I am not sure why i get this error, also my program has little bit more code for some other things and i dont know if something in there can cause this problem.
@pbdeveloperindian4578
Жыл бұрын
At 5:53, you added this, but not working for me My code:- ElementsRecyclerAdapter elementsRecyclerAdapter = new ElementsRecyclerAdapter(elementsList, ElementsRecyclerActivity.this, this); Error:- 'ElementsRecyclerAdapter(java.util.ArrayList, android.content.Context, com.pbgamesandapps.pbchemx.ElementsRecyclerInterface)' in 'com.pbgamesandapps.pbchemx.ElementsRecyclerAdapter' cannot be applied to '(java.util.ArrayList, com.pbgamesandapps.pbchemx.ElementsRecyclerActivity, anonymous com.android.volley.Response.Listener)' My constructor for recycler view adapter :- public ElementsRecyclerAdapter(ArrayList elementsList, Context context, ElementsRecyclerInterface elementsRecyclerInterface) { this.elementsModels = elementsList; this.context = context; this.elementsRecyclerInterface = elementsRecyclerInterface; } Interface:- package com.pbgamesandapps.pbchemx; public interface ElementsRecyclerInterface { void onClick(int position); }
@israasalameh6879
Жыл бұрын
What if I'm fill the array by MVVM way ? I have tried your way, but the value always returns null in the next activity. I have fill the results array by call observe mntRequestViewModel.getMntAllReqMutableLiveData().observe(getViewLifecycleOwner(), new Observer() { @Override public void onChanged(List mntRequests) { if (mntRequests == null) { Toast.makeText(getActivity(), "failed to get all requests", Toast.LENGTH_LONG).show(); } else { //mntRequests is the array that I should use to get position in onItemClick ... allReqResultsAdapter.setResults(mntRequests); } } });
@christianvillanueva723
Жыл бұрын
Thank you
@The_Developer7
2 жыл бұрын
Bro please help In Android studio there is an error how to solve it ? APPT: error: resources drawable/xyz not found.
@The_Developer7
2 жыл бұрын
Bro please help In Android studio there is an error how to solve it ? APPT: error: resources drawable/xyz not found.
@The_Developer7
2 жыл бұрын
Bro please help In Android studio there is an error how to solve it ? APPT: error: resources drawable/xyz not found.
@The_Developer7
2 жыл бұрын
Bro please help In Android studio there is an error how to solve it ? APPT: error: resources drawable/xyz not found.
Пікірлер: 106