Android Studio Tutorial OnClickListener for Multiple Views Using All Possible Methods

Поделиться
HTML-код
  • Опубликовано: 8 сен 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

Комментарии • 138

  • @AndroidGapShap
    @AndroidGapShap 4 года назад +49

    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.

  • @genxtAI
    @genxtAI 4 года назад +34

    I stopped learning from udemy...now continuously following your playlist...ThumsUp for your efforts :-)

  • @panchalravi5838
    @panchalravi5838 3 года назад +2

    Sir , you are no 1 Android developer Teacher 💫❤️

  • @sahirdehani426
    @sahirdehani426 3 года назад +2

    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 года назад +1

      All fingers aren't equal

    • @sahirdehani426
      @sahirdehani426 3 года назад +1

      @@NeatRoots i agree with you sir.

  • @nomikhan3342
    @nomikhan3342 3 года назад +3

    Sir g you are genius. May Allah bless you and grant you a very happy and long life

  • @wisaalkhaan9616
    @wisaalkhaan9616 4 года назад +6

    The Best explanation Ever...

  • @bhumi-kn3lp
    @bhumi-kn3lp 2 месяца назад +1

    Finally I found what I needed

  • @ItsMeHimanshu
    @ItsMeHimanshu 4 года назад +4

    Thanks sir I'm learning 👍 it easily please sir don't Stop making tutorial like this 😫😰

  • @ManishJangid_EARIT
    @ManishJangid_EARIT 3 года назад +2

    sir you are great .sir make a video for backend developer .and countine work on android developer. thankyou so much sir .you are great

  • @Ryuga_019
    @Ryuga_019 3 года назад +3

    This channel is a gem💎

  • @aishanisengupta2650
    @aishanisengupta2650 3 года назад +4

    thank you so much sir i almost gave up on android dev . this playlist is blessing thanks a lot sir!

  • @ramanand6836
    @ramanand6836 4 года назад +8

    Thank you sir for such a great content

    • @NeatRoots
      @NeatRoots  4 года назад

      Stay blessed. Learn with #neatroots

  • @kalpanabarua9204
    @kalpanabarua9204 2 года назад

    Rana ji sabse badiya to last wala tha. Wah bete moj kardi wah

  • @wethepeopleofindia8257
    @wethepeopleofindia8257 4 года назад +3

    Thanks sir love your channel

  • @panchalravi5838
    @panchalravi5838 3 года назад +1

    Sir , muje android devloper me bhaut interest he agar muje achaa koi idea ayega to me ap ke sath share karunga💫❤️

  • @panchalravi5838
    @panchalravi5838 3 года назад +1

    Superb explains 👌 sir ❤️

  • @mnouman1552
    @mnouman1552 3 года назад +1

    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.

  • @JAY-bs3mx
    @JAY-bs3mx Год назад +1

    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 3 года назад +1

    Nice sir g
    I think 3rd method is easiest and best

  • @manankhanlodhi4964
    @manankhanlodhi4964 Год назад +1

    Great work sir

  • @mehadmushtaq3504
    @mehadmushtaq3504 Год назад

    love you bro this is exact video that i'm locking for...

  • @bhagirathtalaviya7337
    @bhagirathtalaviya7337 3 года назад +1

    Background Music I think is awesome. This makes you feel better while studying. Helps in focusing. NeatRoot op.

  • @smartindia2802
    @smartindia2802 4 года назад +2

    Sir First way is verry ezy and verry interesting

  • @basharatbala7617
    @basharatbala7617 3 года назад +1

    have learned First Way nicely ..thanks Bro..

  • @vishaltank6485
    @vishaltank6485 3 года назад +1

    thank u sir i always watch your android web devlopment playlist
    keep it sir....

  • @GamingCherry-yl9wx
    @GamingCherry-yl9wx Год назад +1

    thx sir good explanation

  • @codelearner419
    @codelearner419 2 года назад +1

    very informative

  • @sparrowgaming4674
    @sparrowgaming4674 3 года назад +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👍🏿🙏🏿

  • @someshsahu4638
    @someshsahu4638 2 года назад +1

    Very excellent explanation sir thankyou so much 🙏🏼

  • @muzammil9677
    @muzammil9677 2 года назад +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

  • @techguru2554
    @techguru2554 3 года назад +3

    i appreciate to you to give these knowledge to us.
    keep it up

  • @informationtechtips5391
    @informationtechtips5391 Год назад +1

    THANKS SIR
    FOR UPLOADING THIS PLAYLIST

  • @faizaali8009
    @faizaali8009 10 месяцев назад +1

    Bless You✨

  • @bathularakesh3971
    @bathularakesh3971 3 года назад

    I love You sir your Explanation was so good .I like you sir

  • @neogamingworld9048
    @neogamingworld9048 4 года назад +2

    Sir Completed nice video i love the way u describe everything and please make a video on retrofit and binder

  • @ankitdutt8335
    @ankitdutt8335 3 года назад +2

    Thanks sir that really help me alot :)

  • @mohduvaishmalik9127
    @mohduvaishmalik9127 2 года назад +1

    Thanks sir

  • @mirzamuneeb2496
    @mirzamuneeb2496 2 года назад +1

    Hi you're doing so good sir, could you please make a video on all types of onclick

  • @mistykhan4581
    @mistykhan4581 4 года назад +3

    you are boss...I love complex so second way is better for me

  • @pankajkcodes
    @pankajkcodes 3 года назад +1

    first and Third Way Very Easy

  • @aryaraj1898
    @aryaraj1898 2 года назад

    Thanks you so much Sir ❤️

  • @abdullahjavaid63
    @abdullahjavaid63 3 года назад +1

    Sir i'm your regular student (ABDULLAH JAVAID)

  • @rahulbasutkar04
    @rahulbasutkar04 Год назад

    This man is superb..thank you

  • @rahuldandapat4450
    @rahuldandapat4450 2 года назад +1

    Most easy and best way 3rd one but is it has anydraw backs?

  • @bhargavreddy5938
    @bhargavreddy5938 3 года назад +1

    Amazing explanation

  • @jiminaaa1993
    @jiminaaa1993 4 года назад +1

    Very nice video sir....

  • @mohduvaishmalik9127
    @mohduvaishmalik9127 2 года назад +1

    You are 2 good

  • @basharatbala7617
    @basharatbala7617 3 года назад

    First and Third methods are easy and can be remembered. Wasalam Basharat

  • @neogamingworld9048
    @neogamingworld9048 3 года назад +1

    First Way is the best way

  • @yuvrajkhinchi8218
    @yuvrajkhinchi8218 3 года назад

    thank you so much sir :):):)

  • @amarakkewar7503
    @amarakkewar7503 4 года назад +2

    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

  • @ravishpandey2590
    @ravishpandey2590 4 года назад +1

    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 👍!

  • @ammarmir18
    @ammarmir18 4 года назад +1

    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 ruclips.net/video/ylPHePaZ0K8/видео.html

    • @ammarmir18
      @ammarmir18 4 года назад +1

      @@NeatRoots Thank you Sir.... but meny apni aqal ka use kr K kia to hogya :D.......... in 5 minutes

  • @Raj-kd5ly
    @Raj-kd5ly 2 года назад

    LOVE YOUR COURSE SIR !!!!

  • @javedkhanme3599
    @javedkhanme3599 3 года назад

    Keep doing

  • @amanverma6597
    @amanverma6597 4 года назад +2

    video Editing kaun se software se krte ho aap please btaiye sir

  • @premjitofficial
    @premjitofficial 3 года назад

    Great 😁

  • @akshaysingh7526
    @akshaysingh7526 4 года назад +1

    Sir last mai ek small topic ke uper jise hum pratice kr sake

  • @ANNUETAWAHCRPF
    @ANNUETAWAHCRPF 4 года назад +2

    Sir please use white background theme to android studio for better reading

  • @varunarya211
    @varunarya211 4 года назад +1

    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!

  • @Amjad_Sajjad329
    @Amjad_Sajjad329 3 года назад +1

    That was very tough lesson .Amjad

  • @shubhamtech9
    @shubhamtech9 3 года назад +1

    sir also make same course using kotlin

  • @Watermelon-p8k
    @Watermelon-p8k 3 года назад +1

    Which method is best to use?

  • @streetcompactchannel9304
    @streetcompactchannel9304 3 года назад +1

    Hy ek video Fab button pe banao

  • @rambaldotra2221
    @rambaldotra2221 4 года назад +1

    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

  • @aihmad3133
    @aihmad3133 4 года назад +1

    kindly explain why and when we use "extends and Impliment " in JAVA class....

  • @computertrends4825
    @computertrends4825 4 года назад +2

    Third way

  • @codingaid2753
    @codingaid2753 2 года назад +1

    1 st way was quiet easy

  • @3dmusic915
    @3dmusic915 Год назад +1

    sir video & music player per one video banao bo kese banega us

  • @TeanzMotivation
    @TeanzMotivation 2 года назад +1

    3rd way is the easiest way...!

  • @teamwork8865
    @teamwork8865 4 года назад +1

    i can not make the design properly pls help me or give me the XML code.

  • @FahadPuthawala
    @FahadPuthawala 2 года назад +1

    How to set onclick listener on image?

  • @Studywithsnehasonam
    @Studywithsnehasonam 4 года назад +1

    Sir I request again plz develop a quiz app category wise folder
    Example .History quiz , polity quiz
    Again in history chapterwise McQ

  • @nikhillodhiya
    @nikhillodhiya 4 года назад +2

    sir maybe easier is third way
    |
    but i like to use first way

  • @fahadraza7152
    @fahadraza7152 3 года назад +1

    why we write only "this" in onClickListner() parameter in 2nd ad 3rd way.

  • @TonyMalik7
    @TonyMalik7 3 года назад +1

    3rd way

  • @soumyasubhakantjena3269
    @soumyasubhakantjena3269 4 года назад +1

    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...

  • @syedmubeen8082
    @syedmubeen8082 Год назад +1

    first way is easy

  • @wethepeopleofindia8257
    @wethepeopleofindia8257 4 года назад +2

    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

  • @awaisnisar695
    @awaisnisar695 3 года назад +1

    Sir please a wallpaper project pleaseeeee

  • @snopcatdeveloper653
    @snopcatdeveloper653 3 года назад +1

    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

  • @ghulamjunudchishti3440
    @ghulamjunudchishti3440 2 месяца назад +1

    sir iska xml ka code nahi dikh raha hai.

  • @antukhan5592
    @antukhan5592 4 года назад +1

    u should create 10+ hour video....

  • @SadhnaDivinePath
    @SadhnaDivinePath 4 года назад +1

    3rd way mai on create mai khuch pass nahi keya jata ye dircet value show kar deta ?/

  • @armanansari4851
    @armanansari4851 16 дней назад

    what is package of clickListener

  • @jitendarsahani11
    @jitendarsahani11 4 года назад +1

    Switch case

  • @harshitgargg
    @harshitgargg 4 года назад +2

    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?

  • @neetuattrey4198
    @neetuattrey4198 4 года назад +1

    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

  • @vermadinesh4760
    @vermadinesh4760 4 года назад +1

    First one

  • @techcollege3762
    @techcollege3762 3 года назад +1

    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.

  • @mukeshsahu3673
    @mukeshsahu3673 2 года назад +1

    third way is easiest way.

  • @julfikarali8494
    @julfikarali8494 4 года назад +1

    👍❤

  • @techcollege3762
    @techcollege3762 3 года назад +1

    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

  • @HappyGiftGames
    @HappyGiftGames 3 года назад

    **Han jee kya hal hain.**
    Janab Ap say aik question kerna hai. kahan ker sakta hun.?

  • @shreygupta6479
    @shreygupta6479 3 года назад +1

    third way

  • @eazzadyaarofficial1535
    @eazzadyaarofficial1535 4 года назад +1

    Third way is easy

  • @GamingCherry-yl9wx
    @GamingCherry-yl9wx Год назад +1

    1way easy

  • @muhammadhumza117
    @muhammadhumza117 3 года назад +1

    3rd way is more easy

  • @hindtechnology8674
    @hindtechnology8674 4 года назад +1

    Sir dependencies kb or kon sa project me set Krna rahta h

  • @nyccomputer5949
    @nyccomputer5949 Год назад

    Toast ki jagah RAW file kaise add kare