Android Studio Tutorial OnClickListener for Multiple Views Using All Possible Methods

  Рет қаралды 53,682

Neat Roots

Neat Roots

Күн бұрын

In this tutorial, we will learn how to set OnClickListeners for multiple Views and handle them all in one onClickListner method. We will learn all possible ways to set onClickListner in Android Studio. We are going to use a switch/case statement to check for the button IDs and handle the corresponding button click.
______________________________________________________
Colors used in XML Layout:
Color Name HTML Codes
color name="firstwadred" d2502e
color name="firstwayskyblue" 00adf1
color name="secondwayblue" 3b77b5
color name="secondwaypink" bf5b97
color name="thirdwayyelllow" e39b37
color name="thirdwayred" cd4341
Note: Use hashtag before using these color codes.
________________________________________________________
➡️ Free Android Development Course by Certified Developer in Hindi: • Android Development Co...
.
Show your Support at Patreon:
💰💰 / neatroots
.
👨‍🎓Best Android Tutorials by Certified Developer: 🎓
➡️ Upload App on PlayStore: • Upload App on Playstore
➡️ Tutorials of Instagram App , Food Ordering App and many Other Android Apps: • Complete App Projects
➡️ Start Creating Responsive Layouts: • Layouts in Android - B...
.
Follow us on Social Media
📢 Facebook Page:
/ neatroots
.
👨‍🔧 Join Facebook Group : (Post your Errors here)
g...
.
📱 Follow us on Instagram:
/ neatroots
.
➡️ Follow us on Twitter:
/ neatroots
.
For business Inquires:
✉️: neatrootstech@gmail.com

Пікірлер: 138
@AndroidGapShap
@AndroidGapShap 4 жыл бұрын
Sir i have no money to enroll in any certification course to learn Android development Course. I am very glad to find this course free of cost on neat roots. I requests you please upload full playlist. I am learning continuously from neat roots. Your videos are very helpful for begginers and for those who can't opt any paid course. Thank You.
@saeedkhan9564
@saeedkhan9564 2 жыл бұрын
Good job keep it up
@genxtAI
@genxtAI 4 жыл бұрын
I stopped learning from udemy...now continuously following your playlist...ThumsUp for your efforts :-)
@VIJAYDEEPJAIN-vb5hi
@VIJAYDEEPJAIN-vb5hi 3 жыл бұрын
same here
@sahirdehani426
@sahirdehani426 3 жыл бұрын
yar me to mazak samja tha shuru shuru me.aap to seriously sikha rahe ho.maza araha he muje aapse seek ke.thank you so much sir.behtareen andaaz me sika rahe hain aap.
@NeatRoots
@NeatRoots 3 жыл бұрын
All fingers aren't equal
@sahirdehani426
@sahirdehani426 3 жыл бұрын
@@NeatRoots i agree with you sir.
@panchalravi5838
@panchalravi5838 3 жыл бұрын
Sir , you are no 1 Android developer Teacher 💫❤️
@JAY-bs3mx
@JAY-bs3mx Жыл бұрын
Your explanation at decent level, your playlist is really helpful for absolutely beginner whose have 0 knowledge about Android development . I am very glad to find your playlist, each and every topic explained very deeply. Keep it up!!!
@nomikhan3342
@nomikhan3342 4 жыл бұрын
Sir g you are genius. May Allah bless you and grant you a very happy and long life
@aishanisengupta2650
@aishanisengupta2650 3 жыл бұрын
thank you so much sir i almost gave up on android dev . this playlist is blessing thanks a lot sir!
@NeatRoots
@NeatRoots 3 жыл бұрын
Stay blessed.
@darshanbhingradiya9238
@darshanbhingradiya9238 3 жыл бұрын
@@NeatRoots man will be man { only girl ko replay }
@pakhelpdesk3581
@pakhelpdesk3581 3 жыл бұрын
@@darshanbhingradiya9238 :D
@DeepakKumar-dw1re
@DeepakKumar-dw1re 3 жыл бұрын
@@darshanbhingradiya9238 😄
@panchalravi5838
@panchalravi5838 3 жыл бұрын
Sir , muje android devloper me bhaut interest he agar muje achaa koi idea ayega to me ap ke sath share karunga💫❤️
@mnouman1552
@mnouman1552 3 жыл бұрын
Sir i've learned all my Android from you and now i want to learn Flutter as well please start a series on Flutter ASAP.
@sparrowgaming4674
@sparrowgaming4674 3 жыл бұрын
Sir please show the results before the tutorial, through which we can know what we are going to learn. You are very good explainer👍🏿🙏🏿
@ItsMeHimanshu
@ItsMeHimanshu 4 жыл бұрын
Thanks sir I'm learning 👍 it easily please sir don't Stop making tutorial like this 😫😰
@Ryuga_019
@Ryuga_019 3 жыл бұрын
This channel is a gem💎
@rahuldandapat4450
@rahuldandapat4450 2 жыл бұрын
Most easy and best way 3rd one but is it has anydraw backs?
@muzammil9677
@muzammil9677 2 жыл бұрын
This tutorial is very helpful than paid courses.Great effort sir.Thank you very much.
@muzammil9677
@muzammil9677 2 жыл бұрын
Sir How can we contact you...?
@muzammil9677
@muzammil9677 2 жыл бұрын
Could you provide your Gmail to us?
@NeatRoots
@NeatRoots 2 жыл бұрын
Any solid reason?
@muzammil9677
@muzammil9677 2 жыл бұрын
@@NeatRoots To know wether you offer any paid courses . With out this tutorial
@muzammil9677
@muzammil9677 2 жыл бұрын
I want to learn advanced android development
@Chhota_Adarsh
@Chhota_Adarsh 4 жыл бұрын
Sir mai UI/UX designer hu aur bht confuse tha android development sikhne ke liye. Abhi full satisfy hu after seeing your 2hrs first video. One thing need to clear tha first ya second way me se kaun sa way km space cover krega to get faster results. Thanks for good approach 👍!
@ManishJangid_EARIT
@ManishJangid_EARIT 3 жыл бұрын
sir you are great .sir make a video for backend developer .and countine work on android developer. thankyou so much sir .you are great
@kalpanabarua9204
@kalpanabarua9204 3 жыл бұрын
Rana ji sabse badiya to last wala tha. Wah bete moj kardi wah
@bhumi-kn3lp
@bhumi-kn3lp 3 ай бұрын
Finally I found what I needed
@wisaalkhaan9616
@wisaalkhaan9616 4 жыл бұрын
The Best explanation Ever...
@superfriend7117
@superfriend7117 3 жыл бұрын
MashaAllah jee
@bhagirathtalaviya7337
@bhagirathtalaviya7337 3 жыл бұрын
Background Music I think is awesome. This makes you feel better while studying. Helps in focusing. NeatRoot op.
@amanverma6597
@amanverma6597 4 жыл бұрын
video Editing kaun se software se krte ho aap please btaiye sir
@nomikhan3342
@nomikhan3342 4 жыл бұрын
Nice sir g I think 3rd method is easiest and best
@basharatbala7617
@basharatbala7617 3 жыл бұрын
have learned First Way nicely ..thanks Bro..
@mehadmushtaq3504
@mehadmushtaq3504 Жыл бұрын
love you bro this is exact video that i'm locking for...
@vishaltank6485
@vishaltank6485 4 жыл бұрын
thank u sir i always watch your android web devlopment playlist keep it sir....
@informationtechtips5391
@informationtechtips5391 Жыл бұрын
THANKS SIR FOR UPLOADING THIS PLAYLIST
@rambaldotra2221
@rambaldotra2221 4 жыл бұрын
Sir I have seen your one vudeo yesterday that was about 2 :09 duration in which you have made a calculator app .There you have told about the approach how to watch the videos through playlist , Sir I can't find which playlist should I go for first .So I started with Android app Development Playlist, where you have uploaded about 43 videos since now ,Sir is this is the proper sequence for watching and learning the android app or I should go for some other playlist first ,Sir it will be really good for us to know in which series should we watch the playlists as they are further divided ..Please tell us this Sir .😇
@NeatRoots
@NeatRoots 4 жыл бұрын
Yes . You you are watching right playlist. I appreciate your concentration but if students have little bit common sense then they can treat the the title of playlist
@amarakkewar7503
@amarakkewar7503 4 жыл бұрын
Sir ye java code shikhna he.. Me aap ko adite kr pa rha hun.nam,icon,hide..or app gyeser se ek massenger aap bhi banaya pr muze ye camand dena naii ata..ki konsi camaond denese kya hota? Or vo kha dena ye sb..to kya ek bar vo batao ge sir
@ramanand6836
@ramanand6836 4 жыл бұрын
Thank you sir for such a great content
@NeatRoots
@NeatRoots 4 жыл бұрын
Stay blessed. Learn with #neatroots
@mirzamuneeb2496
@mirzamuneeb2496 2 жыл бұрын
Hi you're doing so good sir, could you please make a video on all types of onclick
@neogamingworld9048
@neogamingworld9048 4 жыл бұрын
Sir Completed nice video i love the way u describe everything and please make a video on retrofit and binder
@abdullahjavaid63
@abdullahjavaid63 3 жыл бұрын
Sir i'm your regular student (ABDULLAH JAVAID)
@rahulbasutkar04
@rahulbasutkar04 Жыл бұрын
This man is superb..thank you
@varunarya211
@varunarya211 4 жыл бұрын
sir, thanks for explaining in very simple way. second method me aapne 'onClick' method create kiya, but call kiya 'onClickListener'. Please ise clear kare... Thanks in advance!
@wethepeopleofindia8257
@wethepeopleofindia8257 4 жыл бұрын
Thanks sir love your channel
@someshsahu4638
@someshsahu4638 3 жыл бұрын
Very excellent explanation sir thankyou so much 🙏🏼
@manankhanlodhi4964
@manankhanlodhi4964 Жыл бұрын
Great work sir
@techguru2554
@techguru2554 3 жыл бұрын
i appreciate to you to give these knowledge to us. keep it up
@NeatRoots
@NeatRoots 3 жыл бұрын
Thanks
@panchalravi5838
@panchalravi5838 3 жыл бұрын
Superb explains 👌 sir ❤️
@bathularakesh3971
@bathularakesh3971 3 жыл бұрын
I love You sir your Explanation was so good .I like you sir
@Watermelon-p8k
@Watermelon-p8k 3 жыл бұрын
Which method is best to use?
@ANNUETAWAHCRPF
@ANNUETAWAHCRPF 4 жыл бұрын
Sir please use white background theme to android studio for better reading
@basharatbala7617
@basharatbala7617 3 жыл бұрын
First and Third methods are easy and can be remembered. Wasalam Basharat
@smartindia2802
@smartindia2802 4 жыл бұрын
Sir First way is verry ezy and verry interesting
@soumyasubhakantjena3269
@soumyasubhakantjena3269 4 жыл бұрын
Hii sir but in third way we create a method outside the oncreate and we didn't call that method inside oncreate then how that method work please replay...
@ammarmir18
@ammarmir18 4 жыл бұрын
apny video k shuru men kha meny already layout bna kia tha taky ap logoon ka zyada time waste na ho... or jab men yeh layout bnany betha ... to ..Alhamdulillah..... meny pura ek ghnta zyada krdia or bna phr bhi nahi -_-
@NeatRoots
@NeatRoots 4 жыл бұрын
Haha. Clear your basic concept by watching this tutorial kzbin.info/www/bejne/r52zeZiGlr9jgZo
@ammarmir18
@ammarmir18 4 жыл бұрын
@@NeatRoots Thank you Sir.... but meny apni aqal ka use kr K kia to hogya :D.......... in 5 minutes
@codelearner419
@codelearner419 2 жыл бұрын
very informative
@aihmad3133
@aihmad3133 4 жыл бұрын
kindly explain why and when we use "extends and Impliment " in JAVA class....
@bizcodetech
@bizcodetech 3 жыл бұрын
**Han jee kya hal hain.** Janab Ap say aik question kerna hai. kahan ker sakta hun.?
@GamingCherry-yl9wx
@GamingCherry-yl9wx Жыл бұрын
thx sir good explanation
@fahadraza7152
@fahadraza7152 3 жыл бұрын
why we write only "this" in onClickListner() parameter in 2nd ad 3rd way.
@mistykhan4581
@mistykhan4581 4 жыл бұрын
you are boss...I love complex so second way is better for me
@NeatRoots
@NeatRoots 4 жыл бұрын
sounds good
@shubhamtech9
@shubhamtech9 3 жыл бұрын
sir also make same course using kotlin
@harshitgargg
@harshitgargg 4 жыл бұрын
Brother, I want to learn android app development. I dont know any programming language(even html). Will you guide me how to start learning android app development?
@wethepeopleofindia8257
@wethepeopleofindia8257 4 жыл бұрын
Thanks sir love your channel
@eazzadyaarofficial1535
@eazzadyaarofficial1535 4 жыл бұрын
also me
@SadhnaDivinePath
@SadhnaDivinePath 4 жыл бұрын
3rd way mai on create mai khuch pass nahi keya jata ye dircet value show kar deta ?/
@akshaysingh7526
@akshaysingh7526 4 жыл бұрын
Sir last mai ek small topic ke uper jise hum pratice kr sake
@ankitdutt8335
@ankitdutt8335 3 жыл бұрын
Thanks sir that really help me alot :)
@wethepeopleofindia8257
@wethepeopleofindia8257 4 жыл бұрын
Many video said download java jdk and many said android studio. What is the difference between java jdk and android studio pls tell me
@NeatRoots
@NeatRoots 4 жыл бұрын
Jdk enable Java language in your system. Android studio is Integrated development environment
@techcollege3762
@techcollege3762 3 жыл бұрын
Dear Sir i Place Image View in constraint layout but image is not displaying while running app rest all working fine
@NeatRoots
@NeatRoots 3 жыл бұрын
Make sure your image must be constraint from vertical and horizontal side.
@Studywithsnehasonam
@Studywithsnehasonam 4 жыл бұрын
Sir I request again plz develop a quiz app category wise folder Example .History quiz , polity quiz Again in history chapterwise McQ
@jiminaaa1993
@jiminaaa1993 4 жыл бұрын
Very nice video sir....
@faizaali8009
@faizaali8009 11 ай бұрын
Bless You✨
@bhargavreddy5938
@bhargavreddy5938 3 жыл бұрын
Amazing explanation
@Raj-kd5ly
@Raj-kd5ly 3 жыл бұрын
LOVE YOUR COURSE SIR !!!!
@teamwork8865
@teamwork8865 4 жыл бұрын
i can not make the design properly pls help me or give me the XML code.
@aryaraj1898
@aryaraj1898 2 жыл бұрын
Thanks you so much Sir ❤️
@snopcatdeveloper653
@snopcatdeveloper653 3 жыл бұрын
bottom sheet jaab puri open ho jane ke baad ( expanded ) wo transparent ho jaye then collaps ho jaye to ( state position ) non transparent ho jaye (only layout, not content effect ) in android studio java coding please make this video im waiting
@Amjad_Sajjad329
@Amjad_Sajjad329 3 жыл бұрын
That was very tough lesson .Amjad
@neetuattrey4198
@neetuattrey4198 4 жыл бұрын
Sir train project ke liye koi app smjh nhi aa rha kiya bnau pliz btado or us pr koi tutorial bna do plizzzzzzz koi badhiya sa app bta do
@mohduvaishmalik9127
@mohduvaishmalik9127 2 жыл бұрын
Thanks sir
@3dmusic915
@3dmusic915 Жыл бұрын
sir video & music player per one video banao bo kese banega us
@FahadPuthawala
@FahadPuthawala 2 жыл бұрын
How to set onclick listener on image?
@techcollege3762
@techcollege3762 3 жыл бұрын
Sir please do not put same name of variable and Id because it's confusing in onclicklistner tutorial of second way in switch case i have to write Id not variable is this right
@nikhillodhiya
@nikhillodhiya 4 жыл бұрын
sir maybe easier is third way | but i like to use first way
@hindtechnology8674
@hindtechnology8674 4 жыл бұрын
Sir dependencies kb or kon sa project me set Krna rahta h
@NeatRoots
@NeatRoots 4 жыл бұрын
Tommorow I'll upload dependency tutorial
@hindtechnology8674
@hindtechnology8674 4 жыл бұрын
ok
@pankajkcodes
@pankajkcodes 3 жыл бұрын
first and Third Way Very Easy
@neogamingworld9048
@neogamingworld9048 3 жыл бұрын
First Way is the best way
@ghulamjunudchishti3440
@ghulamjunudchishti3440 4 ай бұрын
sir iska xml ka code nahi dikh raha hai.
@streetcompactchannel9304
@streetcompactchannel9304 3 жыл бұрын
Hy ek video Fab button pe banao
@mohduvaishmalik9127
@mohduvaishmalik9127 2 жыл бұрын
You are 2 good
@armanansari4851
@armanansari4851 Ай бұрын
what is package of clickListener
@yuvrajkhinchi8218
@yuvrajkhinchi8218 3 жыл бұрын
thank you so much sir :):):)
@javedkhanme3599
@javedkhanme3599 3 жыл бұрын
Keep doing
@premjitofficial
@premjitofficial 3 жыл бұрын
Great 😁
@antukhan5592
@antukhan5592 4 жыл бұрын
u should create 10+ hour video....
@roshanjha6193
@roshanjha6193 3 жыл бұрын
Sir please help mene ek layout bnaya hai jab me usko apne phone me run kar rha hu to vo sahi se visible ho rha h lekin jab me usko dusre phone me run kar rha hu to vo aadha hi visible ho rha h?? What should I do? Please help....!!!
@fenilpatel6238
@fenilpatel6238 11 ай бұрын
code bhejo
@awaisnisar695
@awaisnisar695 3 жыл бұрын
Sir please a wallpaper project pleaseeeee
@TeanzMotivation
@TeanzMotivation 2 жыл бұрын
3rd way is the easiest way...!
@codingaid2753
@codingaid2753 2 жыл бұрын
1 st way was quiet easy
@codzine6167
@codzine6167 4 жыл бұрын
I think the easiest way is third one then first then second...
@nyccomputer5949
@nyccomputer5949 Жыл бұрын
Toast ki jagah RAW file kaise add kare
@TonyMalik7
@TonyMalik7 3 жыл бұрын
3rd way
@computertrends4825
@computertrends4825 4 жыл бұрын
Third way
@syedmubeen8082
@syedmubeen8082 2 жыл бұрын
first way is easy
@fullmetaltheorist
@fullmetaltheorist Жыл бұрын
Can you speak English for people who can't understand what you are saying like me?
@eazzadyaarofficial1535
@eazzadyaarofficial1535 4 жыл бұрын
Third way is easy
@jitendarsahani11
@jitendarsahani11 4 жыл бұрын
Switch case
@fenilpatel6238
@fenilpatel6238 11 ай бұрын
second way wala tarika kam nahi kar raha
@mukeshsahu3673
@mukeshsahu3673 2 жыл бұрын
third way is easiest way.
@vermadinesh4760
@vermadinesh4760 4 жыл бұрын
First one
Toast in Android - All types of Toast in Android App Development
19:13
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 419 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 4,2 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 33 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 15 МЛН
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 139 М.
CardView in Android  -  Layout Sample for RecyclerView - #4
23:46
Neat Roots
Рет қаралды 32 М.
(Shocked) ChatGPT created this Android App and made $$$?
18:32
Harnoor Singh
Рет қаралды 134 М.
5. Layouts in Android | Android Tutorials
13:29
Saumya Singh
Рет қаралды 12 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 419 М.