This is one of the best video on Recyclerview ONclickListner....i was searching since last 4 days....great help
@thetechbrotherss4 жыл бұрын
Thank you so much, Keep sharing keep loving.
@MrIMacro2 жыл бұрын
Very nice, could you please help me? I want to do the same thing but when an item is pressed a google location will open instead of new activity. Could you give me the code for that.
@thetechbrotherss2 жыл бұрын
I don't have the code bro.
@b-tube12662 жыл бұрын
publish your app as a google location opener😂😂😂😂
@manishbagal7831 Жыл бұрын
How did you get the context in adapter.. And my application is crashing after pressing back button after intent call
@thetechbrotherss Жыл бұрын
Please follow video carefully and don't skip
@sitaramgangode9124 жыл бұрын
Thank you sir I have many activities to open form recyclerview. So I think I should use switch case to open those different activities but I don't know how to do it. Please guide about it.
@thetechbrotherss4 жыл бұрын
use this code according to your requirements, hope this will solve your problem. public void onClick(View v) { switch(v.getId()){ case R.id.Button_MyCards: /** Start a new Activity MyCards.java */ Intent intent = new Intent(this, MyCards.class); this.startActivity(intent); break; case R.id.Button_Exit: /** AlerDialog when click on Exit */ MyAlertDialog(); break; } }
@shehrozali83064 жыл бұрын
Bro how can we open image also in this tutorial u just open the position and text can you open text and image both
@thetechbrotherss4 жыл бұрын
Sorry i didn't get you. You can inbox me on insta for further assistance. usernmae : axif_taj
@b-tube12662 жыл бұрын
Load next and previous items after onclick next and previous Button on HomeActivity without moving back to MainActivity.
@thetechbrotherss2 жыл бұрын
there is another video of this do check it out
@Sourav_80893 жыл бұрын
In my above ques I have seen many app that when i touch recycelerview it directly go to activity where i have put values. How did that ?
@thetechbrotherss3 жыл бұрын
You need to add if condition where you want to take the user if you have multiple activity.
@67Diadem3 жыл бұрын
Great tutorial!! I have a question and I wanted to implement that on my project, how will you put a custom back button on new detail activity so that whenever a user press on custom back button then it goes back to recycler view list items. ..? Can you please help me with that?
@thetechbrotherss3 жыл бұрын
Simply add arrow button icon and take it to previous screen using intent class and clear the flag so it doesn't create stack. Or use app bar feature and go to manifest file and add the parent activity into your detail activity.
@arkasaha21563 жыл бұрын
Thanks, just saved my day !! 🙌😎
@thetechbrotherss3 жыл бұрын
Glad it helped!
@mostlygame55713 жыл бұрын
sir design vala part kaise open kare
@thetechbrotherss3 жыл бұрын
Sorry muje question ki msjh ni. If you had any other question ping me on instagram.
@anilKumar-ru6zh2 жыл бұрын
bhai itemView ko click karne pe other profile me kayse dekhay ,if profil types me dekhana ho to
@thetechbrotherss2 жыл бұрын
share the file as string and get it on next screen
@swatipandey64413 жыл бұрын
pleas answer my question " what if i want to set different activity on different image how I can do this help please"
@thetechbrotherss3 жыл бұрын
You can set the image in different activities. You've to decide on which screen you want to go and then write the code accordingly.
@mdsharifmia99833 жыл бұрын
How to use progressbar, when loading firebase data in recyclerview?
@thetechbrotherss3 жыл бұрын
in on create method progressBar.setIndeterminate(true); progressBar.setVisibility(View.VISIBLE); ref.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { for (DataSnapshot ds : dataSnapshot.getChildren()) { //Code for Fetching data from firebase } progressBar.setVisibility(View.GONE); } @Override public void onCancelled(DatabaseError databaseError) { } });
@ashiqulhasanshakil82523 жыл бұрын
thanks ....it's work perfectly...........
@thetechbrotherss3 жыл бұрын
You're welcome!
@mysmartstudio3 жыл бұрын
Dear how to open PDF file by clicking recylerview items
@thetechbrotherss3 жыл бұрын
The way we have passed the data here, now similarly you need to pass the path of PDF file and then show it in next screen. Process remains similar.
@PrashantTechment2 жыл бұрын
Thank you so much sir 🙏
@thetechbrotherss2 жыл бұрын
Most welcome, do subscribe and share with your friends.
@smartsmart93213 жыл бұрын
Ek problem ye hai jab ham next activity me ja rahu tab mai chata hu meri jitni item 0 position me rakhi hai vo show is trah har position ki item show ho
@thetechbrotherss3 жыл бұрын
In this video ma ap jis postion par click krty ho wohi position ka data next screen ma main pass kr raha hu. Ap check kr lain may be you've made mistake some where.
@pareshbhoi88912 жыл бұрын
Isme hi alag alag activity open ka code set karo items me isme hi chhota video bana do please
@thetechbrotherss2 жыл бұрын
is ma set ha na
@cool-ms8dm4 жыл бұрын
Thanks bro you saved my time
@thetechbrotherss4 жыл бұрын
Great, keep sharing keep loving.
@018_niteshkumar54 жыл бұрын
agar hum dusre activity pe jate hai to humko name nahi show karbana hai mujhe uske bare me biography likhna hai to ye kaise karenge pls help.
@thetechbrotherss4 жыл бұрын
Create edit text field using xml Edit text field ma ap likh skty ha.
@randomuser324 Жыл бұрын
I am getting error on context
@thetechbrotherss Жыл бұрын
Share error
@aminedj4304 жыл бұрын
when i tried your code (context ) in intent is in red any solution please i need this for my work
@thetechbrotherss4 жыл бұрын
Can you explain in detail and i will be very happy to help you accordingly.
@aminedj4304 жыл бұрын
@@thetechbrotherss thanks i already solved the problem , i need help with something else , i need to update data in fire base directly if you can help
@wonderers243 жыл бұрын
i got same problem. how you solved that?? please tell me
@kananhasanli15124 жыл бұрын
Hello , nice tutorial , thank you so much , I have a question for you , I would be glad if you answer , I created avengers, Venom, Batman, Jumanji, good deeds, Hulk, Avatar, For these - Empty Activity - When I go in and out of Avatar Activist - I want it to stay on the avatar - But it carries me up (to the Avengers) - how can i solve this problem - please help me
@thetechbrotherss4 жыл бұрын
If you are in into Avatar activity then if you want to move out i would take you by default to your parent activity from which you move in to this. If you want to change this and want to do this custom then please create a new function in which you can can start the new activity in which you want to go and called this function inside onBackPress function. Hope this make sense. If you had any other question ping me on instagram : axif_taj
@kananhasanli15124 жыл бұрын
@@thetechbrotherss Thank you so much
@khumokwezimashapa22454 жыл бұрын
How can I use this for Firebase?
@thetechbrotherss4 жыл бұрын
Yes you can used this, because it is generic and remain same for the recycler view. If you had any other queries ping me on instagram. Instagram : instagram.com/axif_taj
@protocolkhan35013 жыл бұрын
Nice video brother.. Please make a video on how to pass the recycler view itself to the new activity on clicking it.
@thetechbrotherss3 жыл бұрын
Ok i will try to make a video ASAP.
@protocolkhan35013 жыл бұрын
@@thetechbrotherss JazakAllah khair
@yousefbaghlaf67133 жыл бұрын
thank you!
@thetechbrotherss3 жыл бұрын
Welcome!
@CyberneticCreations4 жыл бұрын
Yara Inti mehnat karty hi ho to kindly voice wagera ka khyal b rakh liya karo
@thetechbrotherss4 жыл бұрын
Ok sir, thanks for your positive suggestion.
@mazharhussain.4 жыл бұрын
Awsome
@thetechbrotherss4 жыл бұрын
Thank you
@julfikarali84944 жыл бұрын
Awesome bro...
@thetechbrotherss4 жыл бұрын
Thank you so much 😀
@julfikarali84944 жыл бұрын
Make more tutorial...
@thetechbrotherss4 жыл бұрын
Sure , on which topic you want me to make tutorials for you ?
@julfikarali84944 жыл бұрын
@@thetechbrotherss Bro please clone this application... Without backend.... App Link - play.google.com/store/apps/details?id=com.indianewsapps.englishnewspaper