RecyclerView OnClickListener to New Activity | RecyclerView item Click

  Рет қаралды 18,225

The Tech Brothers

The Tech Brothers

Күн бұрын

Пікірлер
@digitalindiacompanypune5051
@digitalindiacompanypune5051 4 жыл бұрын
This is one of the best video on Recyclerview ONclickListner....i was searching since last 4 days....great help
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Thank you so much, Keep sharing keep loving.
@MrIMacro
@MrIMacro 2 жыл бұрын
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.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
I don't have the code bro.
@b-tube1266
@b-tube1266 2 жыл бұрын
publish your app as a google location opener😂😂😂😂
@manishbagal7831
@manishbagal7831 Жыл бұрын
How did you get the context in adapter.. And my application is crashing after pressing back button after intent call
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please follow video carefully and don't skip
@sitaramgangode912
@sitaramgangode912 4 жыл бұрын
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.
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
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; } }
@shehrozali8306
@shehrozali8306 4 жыл бұрын
Bro how can we open image also in this tutorial u just open the position and text can you open text and image both
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Sorry i didn't get you. You can inbox me on insta for further assistance. usernmae : axif_taj
@b-tube1266
@b-tube1266 2 жыл бұрын
Load next and previous items after onclick next and previous Button on HomeActivity without moving back to MainActivity.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
there is another video of this do check it out
@Sourav_8089
@Sourav_8089 3 жыл бұрын
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 ?
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
You need to add if condition where you want to take the user if you have multiple activity.
@67Diadem
@67Diadem 3 жыл бұрын
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?
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
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.
@arkasaha2156
@arkasaha2156 3 жыл бұрын
Thanks, just saved my day !! 🙌😎
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Glad it helped!
@mostlygame5571
@mostlygame5571 3 жыл бұрын
sir design vala part kaise open kare
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Sorry muje question ki msjh ni. If you had any other question ping me on instagram.
@anilKumar-ru6zh
@anilKumar-ru6zh 2 жыл бұрын
bhai itemView ko click karne pe other profile me kayse dekhay ,if profil types me dekhana ho to
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
share the file as string and get it on next screen
@swatipandey6441
@swatipandey6441 3 жыл бұрын
pleas answer my question " what if i want to set different activity on different image how I can do this help please"
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
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.
@mdsharifmia9983
@mdsharifmia9983 3 жыл бұрын
How to use progressbar, when loading firebase data in recyclerview?
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
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) { } });
@ashiqulhasanshakil8252
@ashiqulhasanshakil8252 3 жыл бұрын
thanks ....it's work perfectly...........
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
You're welcome!
@mysmartstudio
@mysmartstudio 3 жыл бұрын
Dear how to open PDF file by clicking recylerview items
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
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.
@PrashantTechment
@PrashantTechment 2 жыл бұрын
Thank you so much sir 🙏
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Most welcome, do subscribe and share with your friends.
@smartsmart9321
@smartsmart9321 3 жыл бұрын
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
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
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.
@pareshbhoi8891
@pareshbhoi8891 2 жыл бұрын
Isme hi alag alag activity open ka code set karo items me isme hi chhota video bana do please
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
is ma set ha na
@cool-ms8dm
@cool-ms8dm 4 жыл бұрын
Thanks bro you saved my time
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Great, keep sharing keep loving.
@018_niteshkumar5
@018_niteshkumar5 4 жыл бұрын
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.
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Create edit text field using xml Edit text field ma ap likh skty ha.
@randomuser324
@randomuser324 Жыл бұрын
I am getting error on context
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Share error
@aminedj430
@aminedj430 4 жыл бұрын
when i tried your code (context ) in intent is in red any solution please i need this for my work
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Can you explain in detail and i will be very happy to help you accordingly.
@aminedj430
@aminedj430 4 жыл бұрын
@@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
@wonderers24
@wonderers24 3 жыл бұрын
i got same problem. how you solved that?? please tell me
@kananhasanli1512
@kananhasanli1512 4 жыл бұрын
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
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
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
@kananhasanli1512
@kananhasanli1512 4 жыл бұрын
@@thetechbrotherss Thank you so much
@khumokwezimashapa2245
@khumokwezimashapa2245 4 жыл бұрын
How can I use this for Firebase?
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
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
@protocolkhan3501
@protocolkhan3501 3 жыл бұрын
Nice video brother.. Please make a video on how to pass the recycler view itself to the new activity on clicking it.
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Ok i will try to make a video ASAP.
@protocolkhan3501
@protocolkhan3501 3 жыл бұрын
@@thetechbrotherss JazakAllah khair
@yousefbaghlaf6713
@yousefbaghlaf6713 3 жыл бұрын
thank you!
@thetechbrotherss
@thetechbrotherss 3 жыл бұрын
Welcome!
@CyberneticCreations
@CyberneticCreations 4 жыл бұрын
Yara Inti mehnat karty hi ho to kindly voice wagera ka khyal b rakh liya karo
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Ok sir, thanks for your positive suggestion.
@mazharhussain.
@mazharhussain. 4 жыл бұрын
Awsome
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Thank you
@julfikarali8494
@julfikarali8494 4 жыл бұрын
Awesome bro...
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Thank you so much 😀
@julfikarali8494
@julfikarali8494 4 жыл бұрын
Make more tutorial...
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Sure , on which topic you want me to make tutorials for you ?
@julfikarali8494
@julfikarali8494 4 жыл бұрын
@@thetechbrotherss Bro please clone this application... Without backend.... App Link - play.google.com/store/apps/details?id=com.indianewsapps.englishnewspaper
@MuhammadKhalid-eu7tx
@MuhammadKhalid-eu7tx 4 жыл бұрын
Nice
@thetechbrotherss
@thetechbrotherss 4 жыл бұрын
Thank you
RecyclerView Item Click | Best Practice Way
8:06
Practical Coding
Рет қаралды 98 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
DIY TOY CAR! How to make Speedy CAR! SUPER EASY and FUN!
3:26
Toy Train Time
Рет қаралды 9 МЛН
RecyclerView item Click using Interface | Advanced Way | Android
7:01
RecyclerView OnClickListener (Best practice way)
11:48
CodingWithMitch
Рет қаралды 292 М.
The Biggest Mistake Intermediate React Developers Make
18:32
Cosden Solutions
Рет қаралды 42 М.
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 98 М.
I've Used Jetpack Compose For 4 Years - Here's the Good and the Bad
16:12