Android Studio Tutorial OnClickListener for Multiple Views Using All Possible Methods
HTML-код
- Опубликовано: 23 ноя 2024
- 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
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.
Good job keep it up
I stopped learning from udemy...now continuously following your playlist...ThumsUp for your efforts :-)
same here
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.
All fingers aren't equal
@@NeatRoots i agree with you sir.
Sir , you are no 1 Android developer Teacher 💫❤️
Sir g you are genius. May Allah bless you and grant you a very happy and long life
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.
thank you so much sir i almost gave up on android dev . this playlist is blessing thanks a lot sir!
Stay blessed.
@@NeatRoots man will be man { only girl ko replay }
@@darshanbhingradiya9238 :D
@@darshanbhingradiya9238 😄
Sir please show the results before the tutorial, through which we can know what we are going to learn.
You are very good explainer👍🏿🙏🏿
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!!!
This tutorial is very helpful than paid courses.Great effort sir.Thank you very much.
Sir How can we contact you...?
Could you provide your Gmail to us?
Any solid reason?
@@NeatRoots To know wether you offer any paid courses . With out this tutorial
I want to learn advanced android development
Sir , muje android devloper me bhaut interest he agar muje achaa koi idea ayega to me ap ke sath share karunga💫❤️
sir you are great .sir make a video for backend developer .and countine work on android developer. thankyou so much sir .you are great
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 👍!
Thanks sir I'm learning 👍 it easily please sir don't Stop making tutorial like this 😫😰
Background Music I think is awesome. This makes you feel better while studying. Helps in focusing. NeatRoot op.
The Best explanation Ever...
MashaAllah jee
This channel is a gem💎
Rana ji sabse badiya to last wala tha. Wah bete moj kardi wah
Finally I found what I needed
Nice sir g
I think 3rd method is easiest and best
have learned First Way nicely ..thanks Bro..
thank u sir i always watch your android web devlopment playlist
keep it sir....
love you bro this is exact video that i'm locking for...
Very excellent explanation sir thankyou so much 🙏🏼
Hi you're doing so good sir, could you please make a video on all types of onclick
I love You sir your Explanation was so good .I like you sir
THANKS SIR
FOR UPLOADING THIS PLAYLIST
First and Third methods are easy and can be remembered. Wasalam Basharat
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 -_-
Haha.
Clear your basic concept by watching this tutorial ruclips.net/video/ylPHePaZ0K8/видео.html
@@NeatRoots Thank you Sir.... but meny apni aqal ka use kr K kia to hogya :D.......... in 5 minutes
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!
Sir Completed nice video i love the way u describe everything and please make a video on retrofit and binder
Thank you sir for such a great content
Stay blessed. Learn with #neatroots
Sir i'm your regular student (ABDULLAH JAVAID)
This man is superb..thank you
Most easy and best way 3rd one but is it has anydraw backs?
i appreciate to you to give these knowledge to us.
keep it up
Thanks
Superb explains 👌 sir ❤️
Sir First way is verry ezy and verry interesting
you are boss...I love complex so second way is better for me
sounds good
Thanks sir love your channel
Sir last mai ek small topic ke uper jise hum pratice kr sake
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 .😇
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
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
Sir please use white background theme to android studio for better reading
very informative
thx sir good explanation
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
Sir I request again plz develop a quiz app category wise folder
Example .History quiz , polity quiz
Again in history chapterwise McQ
video Editing kaun se software se krte ho aap please btaiye sir
Great work sir
Thanks sir that really help me alot :)
kindly explain why and when we use "extends and Impliment " in JAVA class....
First Way is the best way
Very nice video sir....
That was very tough lesson .Amjad
Amazing explanation
why we write only "this" in onClickListner() parameter in 2nd ad 3rd way.
Which method is best to use?
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?
Thanks sir love your channel
also me
LOVE YOUR COURSE SIR !!!!
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...
Thanks you so much Sir ❤️
sir also make same course using kotlin
sir video & music player per one video banao bo kese banega us
sir maybe easier is third way
|
but i like to use first way
i can not make the design properly pls help me or give me the XML code.
Bless You✨
first and Third Way Very Easy
3rd way mai on create mai khuch pass nahi keya jata ye dircet value show kar deta ?/
Many video said download java jdk and many said android studio.
What is the difference between java jdk and android studio pls tell me
Jdk enable Java language in your system. Android studio is Integrated development environment
Dear Sir i Place Image View in constraint layout but image is not displaying while running app rest all working fine
Make sure your image must be constraint from vertical and horizontal side.
Hy ek video Fab button pe banao
3rd way is the easiest way...!
u should create 10+ hour video....
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
Thanks sir
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
How to set onclick listener on image?
**Han jee kya hal hain.**
Janab Ap say aik question kerna hai. kahan ker sakta hun.?
Keep doing
You are 2 good
sir iska xml ka code nahi dikh raha hai.
thank you so much sir :):):)
Great 😁
Sir dependencies kb or kon sa project me set Krna rahta h
Tommorow I'll upload dependency tutorial
ok
Sir please a wallpaper project pleaseeeee
what is package of clickListener
1 st way was quiet easy
I think the easiest way is third one then first then second...
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....!!!
code bhejo
first way is easy
Third way is easy
third way is easiest way.
3rd way is more easy
Toast ki jagah RAW file kaise add kare
3rd way
Third way
Switch case
Can you speak English for people who can't understand what you are saying like me?
second way wala tarika kam nahi kar raha