WARNING!! I don't use the "best-practice" way to detect clicks to a RecyclerView in this video. Watch this video for the best-practice way: kzfaq.info/get/bejne/bJ9zZM-by6ranGQ.html
@ankitrathore12635 жыл бұрын
Hello Can you make a tutorial on dynamic (parsing json data ) recyclerview inside fragment. Please I really need for this to complete my project.
@geekygamer75284 жыл бұрын
Please do the same program on two different fragment instead of activity.
@elishamaturah33234 жыл бұрын
can i use this project for my app sdk 29
@akshayjadhav8694 жыл бұрын
Please add with image slider on click to detail activity
@zeuskumar74956 жыл бұрын
I think this the best video on android tutorial i have seen. Good things are: 1.You started to make video from where code will start and gave reasons why we are using this. Its good for beginners n for guy who didn't understand the flow properly. 2. Not only I learned to use recycler view but also good practice to write code for android and learned basics of ui design. I will check if u have made any video on fancy ui design. Thank you so much for making simple videos. Keep going.
@codingwithmitch6 жыл бұрын
Thank you.
@MelColton6 жыл бұрын
I just wanted to say that I find your posts to be, probably the best around. I’m new to Java and Android programming and your stuff really, really helps my confidence. You make the complex feel manageable and your code is clean. So if I’m stuck and follow your code, I’m unstuck in a couple of hours. Thanks Mitch. Whatever you do do, don’t stop this.
@codingwithmitch6 жыл бұрын
Thank you for your kind words :)
@MelColton6 жыл бұрын
CodingWithMitch you are more than welcome fella. Now... if you can school me on how to make an onClick Listener event load data in Firebase I will not only give you great feedback, I’ll buy you a beer. And that’s no mean promise when you consider that I’m in London, UK 😄
@codingwithmitch6 жыл бұрын
Mel Colton hahaha. I'm not sure what you mean? Firebase is a developer tool. You can't set an on click listener to it. Can you be more specific?
@seyidtakele81584 жыл бұрын
normally i dont subscribe that much , but i can't go without subscribing this channel..the best channel of its kind .
@abeerabidraja64586 жыл бұрын
Thank you Very Much Sir... I have been wasting almost 3 to 4 hours to open new activity by clicking a button and you solved it by a blink of an eye thank you very much
@jason184016 жыл бұрын
Thanks so much Mitch! I've watched around 5 different videos and by far this one is the easiest to comprehend!
@bibinjoseph38125 жыл бұрын
Every single piece of information sounds helpful to me. I was stuck in my project and this video helped me a lot. I don't usually hit the subscribe button, for you , I definitely clicked. Even I learned more things from your channel than in my android class. Thanks for giving a helping hand for people like me. Your videos are a big inspiration to get in more depth with Android. Game on now!
@codingwithmitch5 жыл бұрын
You should watch this (free) course. It's great for beginners. Let me know if it teaches you more than in your classes :P. codingwithmitch.com/courses/sqlite-room-persistence-android/
@bibinjoseph38125 жыл бұрын
@@codingwithmitch Sure. Thanks very much.
@nafisaalam41643 жыл бұрын
thank you so much, man. This little piece was really helpful for me. I was going through stack overflow and all the solutions were driving me crazy.
@shawnlanthier86195 жыл бұрын
Thanks so much for this Mitch & Samir. I learned more about recyclerView from your videos than any I've run across in weeks. Very clear and detailed but not boring. I plan to watch many more. Oh but you can keep your picture of frozen lake, I live in Ottawa area on a lake and it's been -25deg for the last 3 days. LOL
@ravirajkudal56264 жыл бұрын
Thanks bro u r genius 👍👍 Your all playlist helps a lot me for making my projects.. Love from India ❤❤
@ghimanshuss6 жыл бұрын
What i did was declared linear layout object for the card then found it by id. Then Holder.linearLayout.setonclicklistener.... And inside this listener i used switch position. I am just very new to programming u suggested this method which u just showed in video. But that went above my head and i replied ok thanks fearing that i might sound silly or dump if i ask u again.😅 Actually i am learning from a channel slidnerd for the basics of android than i have plans to start learning from ur channel so that i can understand u better. Thanks for this tutorial.🙏 From India.
@kalsoomasghar13444 жыл бұрын
You are honestly the besttttt. Every video that you make works
@keithlockey71294 жыл бұрын
Amazing video. Very clear and well thought out. Best android video I have watched thus far.
@chonchilo4 жыл бұрын
Thanks duude! I adapteded to my app with json response - mysql and works just fine!
@jameskrall84115 жыл бұрын
When I create the onClickListener, it creates perfect, but when I try to click on one of my icons, the app crashes
@akshayjain41734 жыл бұрын
I m from India and saw the video totally awesome ....
@logoutofyourgmailaccountne48582 жыл бұрын
Dear sir I am extremely pleased and thank you for all of your series of videos for Recycler View which give us a lot of information sir I would like request you to make a video for generating a multiple paged pdf containing all records in the table not for only one particular record. I will remain thankful forever to you if you make this video for android learners
@XMrNimX4 жыл бұрын
Im a beginner Trying to get the code for the following situation Edittext1 = current stock of proteinbars Edittext2 = daily consumed proteinbars Textview1 (days left) = how many days i have left ( edittext1 / editext2 ) Textview2 (Reorder date) = current date + textview1 - 7 days (delivery time) Reorder date displayed
@jesselima_dev6 жыл бұрын
Thanks for your videos. helped me a lot. Very straightforward solution. I had tried others tutorials and many of them just did not work because many changes were required. I tried many ways and many times and the onClick just did not work (with no app crash). I was the best solution so far. I saw some courses you did on Pluralsight and I will take the series. You just made a selection of many things I need to use in a forthcoming project.
@codingwithmitch6 жыл бұрын
Jesse Lima cool. I'm glad my videos are helpful. The Pluralsight courses are much higher quality
@jesselima_dev6 жыл бұрын
Oh yes, They are! If you guys want to learn Android/Firebase, just go to pluralsight.com and search for "android firebase" by Mitch Tabian. Good teacher, great content!
@christopherteddymienarto91154 жыл бұрын
Hello, Thank you for Explaining about RecyclerView. God Bless You!
@samirdesigner33246 жыл бұрын
very thanks but if from second page show other text is good and if get text in strings by array to list view and in second page show second array text thanks
@samirdesigner33246 жыл бұрын
Mitch Tabian my bro i want get text array to recycle view like dictionary en vs in app and like app story kids
@codingwithmitch6 жыл бұрын
Samir Dev I have no idea what your trying to say
@sagardudhat82635 жыл бұрын
@@codingwithmitch we want some other details means you put the same data on the onclick event ..... but we want more details which not show in recycleveiw...
@Armin-cu9gj3 жыл бұрын
@@codingwithmitch He doesn't want to pass the same text from the previous activity , btw. is it possible to make another recycler view (similar one) when we click on one of these Countries (something like: Countries -> Towns)? Cheers
@imanaski18785 жыл бұрын
Best tutorial ever....I hope you keep going
@graphikcreativezone3 жыл бұрын
You are a life saver Sir. Thank you for this video well explained !!
@codinginflow6 жыл бұрын
Don't set the onClickListener in onBindViewHolder. This way it will be called every time a new row appears on the screen, which is a costly operation. The correct place is the Viewholder constructor. Nice video anyways!
@codingwithmitch6 жыл бұрын
Show me the data that makes it a costly operation. I'm not doubting you, but I'd like to see proof. Another reason you'd want to put it in the OnBindViewHolder method is to access variables. It can complicate things if you add it in the ViewHolder. You'd need methods to pass the variables to the viewholder if you wanted to do things with them.
@user-fy1iq6wq2i5 жыл бұрын
I would give you a big thumbs up! Really helpful! Big thank from China!
@mmm2007j6 жыл бұрын
Nice video,I write your Staggered RecyclerView first,and then add this video's content.
@syednayyar4 жыл бұрын
Great Tutorial as always... and two bugs in android studio or android / google 1, If you dont add activity in manifest it will crash 2, if you dont check intents has extras your app will crash ... WTH .. i will not say Why Cant Google not handle this i would say its a bad design ... simple as ... by the way i am lover of android since 2009 April as well as badass Critique as well.
@zhaojiali83825 жыл бұрын
thanks a lot for the tutorial, really useful and clear. Even if I'm a noob in Android development. I can also understand clearly what are you doing here, and can learn a lot of useful things. Than you so much and will follow your last vedios
@kajal091s5 жыл бұрын
Thank you, This is exactly what i was looking for.
@b-tube1266 Жыл бұрын
load next and previous item after clicking next button and previous button in galleryActivity without going back to MainActivity
@omkarpendkalkar1110 Жыл бұрын
The exactly what I wanted !! Thanks Mitch !
@maheshmahajan78945 жыл бұрын
Love you Brother your are the best. Thanks you.
@giftmusanza92054 жыл бұрын
Thanks for your videos they really help a lot. How can I display images from drawable and pass them to a new activity when item is clicked? Instead of using the internet, I want to design an offline app
@jesselima_dev6 жыл бұрын
Hi Mitch, Android studio complains when declaring " final int position" like this: onBindViewHolder(MyAdapter.MyViewHolder holder, final int position). The Android Studio give some useful information about it and offers a possible solution. The warning is: "Do not treat position as fixed; only use immediately and call holder.getAdapterPosition() to look it up later. RecyclerView will not call onBindViewHolder again when the position of the item changes in the data set unless the item itself is invalidated or the new position cannot be determined. For this reason, you should only use the position parameter while acquiring the related data item inside this method, and should not keep a copy of it. If you need the position of an item later on (e.g. in a click listener), use getAdapterPosition() which will have the updated adapter position." How I solved: .. onBindViewHolder(MyAdapter.MyViewHolder holder, int position){... then I creates a new int variable from the adapter positianfinal ===>> int adapterPosition = holder.getAdapterPosition(); Then I use this adapterPosition inside the setOnClickListener like you teach. I don't know if what I did is the best approach. But thinking about how the adapter works and about the method getAdapterPosition() it makes sense. What do you think?
@codingwithmitch6 жыл бұрын
It's telling you that you need to use "getAdaperPosition" instead of creating a variable. Since the variable would be static and the position is not.
@elelan6 жыл бұрын
This video helped me a lot with my project please keep up the good work Thank you
@rollymagno6982 жыл бұрын
once you are in your new activity after the onclicklistener, how would you approach swiping left or right to move through the children views without going back and clicking the next or previous one?
@dickyzuerst28285 жыл бұрын
the best tutorial complete with explanation ... we are waiting for the next video tutorial sir.
@ivan_lebedev4 жыл бұрын
Thanx, from Russia!
@z_xgaming37853 жыл бұрын
this video helped me in my project thanks alot
@dyaa_unison55806 жыл бұрын
How can i replace glide for just accessing darwable ? \
@krispinugget4 жыл бұрын
In your next Video, i think you didnt mention about the Android Manifest, so for everyone who has crashes when when starting a new Activity, Make sure you add the Android Manifest
@zen-bi7fe5 жыл бұрын
amazing videos by you ..... grabbing every basic logic of yours .. a great thanks to you
@my_dixie_rect88655 жыл бұрын
Another brilliant video. Thanks Mitch!
@Yasinyabis975 жыл бұрын
Great tutorial, helped in my project.
@CUPAXXHD4 жыл бұрын
how to use image not from internet ???
@chetankshirsagar31244 жыл бұрын
please sir , make videos on offline storage, and how to fetch data when internet is not there
@vahidhoseini17233 жыл бұрын
great, good job mitch.
@chris.eminence4 жыл бұрын
Thank so much for the tutorial, exactly what I have been looking for. Please sir I a little enlightenment. After clicking on the recycler View items, we get to the 2nd activity as expected. I want to request, please how can I add a button to do something on the 2nd activity of each recycler view item clicked.
@rehanakbar5875 жыл бұрын
can u make multiple recyler view with on click
@kostasnikoloutsos51726 жыл бұрын
Very good video. I think that you explained some things better that the android developers documentation, oh and thanks for the shortcuts for android studio. I would like to see a video from you that will use RecycleView in combination with CardView, elevation and ripple effects whenever user clicks an item in recycle view. +1 subscribers
@atila_tv6 жыл бұрын
Excelent video, i would like to know how to set listeners to 5 different activities, i would really appreciate the help, again , thanks for the video
@goldenave26115 жыл бұрын
Hey what if i wanted to display sone additional info in the onclick activity for each image how do i do that?
@teamlvm38054 жыл бұрын
Hi Mitch, can you explain why this is not the best practice way?
@BiPolish135 жыл бұрын
This video helped me a ton. Thank you so much for making it.
@elishamaturah33234 жыл бұрын
Thanks alot Mitch you helped me all the way
@dfap123455 жыл бұрын
Amazing stuff! Great job!
@ravronz96775 жыл бұрын
thank you sir i have made it work in my app and its great
@compumarana97702 жыл бұрын
Thanks bro! Excellent video
@geekygamer75284 жыл бұрын
Please do the same program on two different fragment instead of activity.
@codingwithmitch4 жыл бұрын
I have examples using fragments in many of my courses. This is the newest. codingwithmitch.com/courses/powerful-android-apps-with-jetpack-architecture/
@cendradevayanaputra71503 жыл бұрын
do you have tutorial about binding in recycleview?
@bekmakhmudov43093 жыл бұрын
Thank you, everything is good . Yet, can you do more practise with setOnClicklistiners in recyclerview because it comes really hard to many of my friends as well
@sharathchandra61666 жыл бұрын
Great video! Thanks a lot! keep up the good work.
@John-qt6qk5 жыл бұрын
im trying to send data from fragment to fragment using method OnItemtouchlister
@sds9802 жыл бұрын
Thanks sir this tutorial is very helpful 💜💜
@prashantupadhyay23015 жыл бұрын
Nice work 👌.... using logt is the best one😊😊❤️❤️❤️
@ihorzhylchuk11916 жыл бұрын
How can I add a "Next" button in the opened Activity and set Onclick to display next item from a List? Any solutions. Thanks
@madguy19674 жыл бұрын
I want craete it from another XML file not from activity.xml file it's not coming please help !!
@joelprakash97165 жыл бұрын
Please help the image is not loading
@benjaminklunkim45494 жыл бұрын
Thank you for the awesome tutorial. Also, please make a video on how to add Search on this recyclerview list
@erickloningo22525 жыл бұрын
Thanks man this is awesome
@rohitpandey19582 жыл бұрын
hey i want to do this when i click on the button to select the specific image can you tell me the code
@sreeharikollamattam28254 жыл бұрын
Thanks very much brother
@bruceleeroy83025 жыл бұрын
This video is fantastic but I may have missed something. Where do you store the new images and text when you click on the main activity? When I click, I just get the generic image and text that we made in the gallery layout file.
@akshayjadhav8694 жыл бұрын
Please tell me how do I add image slider onclick recycler
@greentechnology73465 жыл бұрын
Great tutorials Mitch! Learned a lot from this video. I am looking for your video where the Adapter takes the data (JSON) from a DB instead of manually including it to the code, but I can't find it though. Thanks!
@patriciadeniseordona59185 жыл бұрын
My recyclerview is placed in a fragment. How can I go back from the New Activity to the RecyclerView Fragment?
@mohitbhargav57776 жыл бұрын
Well explained. Thanks., how can I show full description of the second page for all list view??
@Ivan-qb9cs6 жыл бұрын
Great content ! keep up the good work :)
@drallisimo345 жыл бұрын
Cool stuff!!! Bravo!
@chiragkumar19684 жыл бұрын
8:00 This was my problem. Im dumb man. Thanks buddy!!
@MrTitu0175 жыл бұрын
Hi, Mitch, by using OnClickListener on item (recyclerview), how can I show another recyclerview into new activity? I really need to solve this problem. Can you help me with it, please? and thank you for this tutorial
@beresfordgroenewaldt72905 жыл бұрын
Awesome video @CodingWithMitch. is there a way to do it with drawable images and not with Glide?
@prernapachpande40015 жыл бұрын
Can u please make further using viewpager
@arniejeansalazar74534 жыл бұрын
Hello sir, Is it possible to add some recycler view images along with text but using fragments...
@619shaan6 жыл бұрын
I have added 5 cardviews to my main activity.xml. Onclick cardview should display new popup layout. How to implement?
@georgematsos44164 жыл бұрын
How can we add content in the new activity related to the item clicked (same layout but different content) Thanks!
@augstudio11386 жыл бұрын
Hello Sir. The video is good and helpful, I even have mine running now.... But how do I set the gallery activity to download the Images and set it as wallpaper?
@ldcl25066 жыл бұрын
After going to the next activity where we see the image in high resolution and the text I would like to implement a button to edit that data, how could I do so by clicking on that button to take me to another activity called update and load the same data (Imageview, textview, but now as editext) thanks
@anubhavwalde35035 жыл бұрын
I am beginner in Android In a recycleview onclicklistener item 1 should display an activity 1 and on item 2 should display activity 2 . How can I do it. Can u help plzzz
@nirajmunot67004 жыл бұрын
hey thanks for this great tutorial! can you please tell me how can i add different descriptions for each of the page?
@MedyGames6 жыл бұрын
how to enable these horizontal lines that seperate code in android studio ?
@saadiftikhar82485 жыл бұрын
sir plz help me in recyclerview i when i click on recyclerview and open te new activity thats work fine when i clicked back recyclerview not getting the same position where i left how can i solve this
@abah_aini6 жыл бұрын
how to create when click on items recycleview go to new activity like webview..
@Rio-tg1rj5 жыл бұрын
This video help me a ton! Thx bro
@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?
@divyanshgohil70243 жыл бұрын
Thank you so put for this video it help a lot
@simplydikka5 жыл бұрын
Has anybody tried adding previous and next buttons in the gallery activity itself to switch between the items int he list?
@rafifrahman3 жыл бұрын
Sir, where does this parent_layout come from?
@adamyuristianto92696 жыл бұрын
hay @CodingWithMitch, how add a TextView in act_gallery when a list item (layout_listitem) is clicked? thanks u..
@codingwithmitch6 жыл бұрын
You just want a textview on the screen under the image or something?
@oshabzsam97736 жыл бұрын
Thanks. if the person click more than one how can I get the text the user clicked.