Calculator App Android Studio Kotlin Tutorial

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

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

  • @wendiiyau
    @wendiiyau 2 года назад +63

    5:02 This is the symbol he uses, just copy paste it~

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

      thanks bro you saved me

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

      for those searching for it, the name of the symbol is "erase to the left".

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

      you can get it from vector resource
      its name is"backspace"
      and treat with butten as imageButton

    • @LuckAnchovy
      @LuckAnchovy 6 месяцев назад

      Thanks bro, you helped me!

    • @exejar
      @exejar 15 дней назад

      kudos to you sir.

  • @satyamsharma8240
    @satyamsharma8240 3 года назад +32

    Slow it for us small people

  • @crazydvae
    @crazydvae Год назад +18

    You made this tutorial AN ENTIRE 9 MONTHS after it was announced that the Android Kotlin Extensions Gradle plugin was no longer going to be supported?

  • @hamzaakgun5527
    @hamzaakgun5527 2 года назад +2

    Honestly I loved the way you approached it and learned a lot from this video, even though it's not a long one.

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

      Thanks a lot, really kind of you to say :)

  • @bramantawisnu
    @bramantawisnu 2 года назад +10

    i use 0.25 speed ,, becouse that very fast,, like magic tric 😁

  • @theblueplanet3576
    @theblueplanet3576 6 месяцев назад

    My takeaway from this video was using of styles. Thanks 🙏

  • @salomeshunamon
    @salomeshunamon 6 месяцев назад +5

    kotlin-android-extensions is depreciated. Can you make an update video with how to change this finished project so that it's compatible?

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

    awesome explanation and development thank you Cal

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

    Thank you! Was very helpful!

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

    Buen video!! buenisimo!! saludos desde Argentina. Nuevo Sub :)

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

    What do I do?

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

    Thank Cal, this video help so much !

  • @p.soumyasundarsubudhi6007
    @p.soumyasundarsubudhi6007 10 месяцев назад

    Thanks for the tutorial it helped me

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

    My buttons are not calling the the style variables. They are just remaining default

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

    Love you bro

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

    great video Cal...

  • @vascocastel-branco3370
    @vascocastel-branco3370 Год назад +2

    hey, awesome video, but when you used the (" apply plugin: 'kotlin-android-extensions' ") it says it is no longer supported, what should I do to fix this? Thank you very much!!

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

    Thaaank you You're a lifesaver..!

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

    Thanks for teaching this. New subscriber

  • @tafman
    @tafman 2 года назад +2

    Nice tutorial, we really appreciate for your time making videos like this, it's really helping people like us who are new to coding...
    5:02 how/where did you get that button from because it's not on my keyboard?

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

      i also have same doubt.
      How you are able to enter that button

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

      @@rishabnegi2334 Found the solution... Its a code that you'll enter in the space given there

    • @CodeWithCal
      @CodeWithCal  2 года назад +2

      I just copied the character from the internet ;)

  • @Alvarez_Isaac
    @Alvarez_Isaac 6 месяцев назад

    Hey Cal, first of all. Thanks for your code and knowledge, it's been so helpful. I have a question about your code, I noticed that if you put the negative value first, it won't do the operation. For example: -99 + 1 and if you click the equal button, there will be no operation or just -1 and equal button, error too. Could you please give me some advice to fix this? Thanks anyway for your solution

  • @wiki-SMART
    @wiki-SMART 3 года назад

    I love you!.. Great work!.. Thank you!

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

    Gracias este video es asombroso

  • @priyanshushrivastava4453
    @priyanshushrivastava4453 2 года назад +2

    sir i cant able to access workingsTV directly in main activity what is the solution sir?

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

    Plugin with id 'kotlin-androids-extensions' not found.

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

    Great video keep it going , new subscribe right here :D

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

    Thanks a lot my dude

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

    good work!

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

    Thank you brother

  • @p.soumyasundarsubudhi6007
    @p.soumyasundarsubudhi6007 10 месяцев назад

    Can I know how to add the modulo operations in the existing code given by you

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

    It was very useful

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

    Hey Cal, if we can't use this anymore apply plugin: 'kotlin-android-extentions'
    then what should I do for the program to run?

    • @CodeWithCal
      @CodeWithCal  2 года назад +2

      The way google would like us to do it now is with view binding :)

  • @rutgerpronk2754
    @rutgerpronk2754 Год назад +3

    Bro were not coding with cal you are coding we are copying. i dont like ur super fast phase video's

    • @rutgerpronk2754
      @rutgerpronk2754 Год назад +2

      You are coding so fast i have you on 0.75 speed and its so frustrating to watch because i cant even keep up hard to even read the colors when you enterd them and dont even explain anything.

  • @RaneemSarminy
    @RaneemSarminy 5 месяцев назад

    I named the file with the same file name and copied the code. I did not write it myself, but there are a lot of errors. Does anyone know the reason? error in workingsTV. There are yet other errors.

  • @mr_waras
    @mr_waras Год назад +3

    wowowow slow down man, boom bam bam done, I do know java, but not kotlin and not android studio ui, but it's abit too fast, unless you pause every second :D

  • @tnt_popcorn__
    @tnt_popcorn__ 11 месяцев назад

    I did the view binding but still not working. I almost give up

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

    Man that was tooooooooooooooooooooooooo fast 😳

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

    Play this at .75x speed. Your welcome

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

    workingTv is nnot funtional in my program

    • @vascocastel-branco3370
      @vascocastel-branco3370 Год назад +1

      you have to create a variabel like this
      " name_of_variable = findViewById(R.id.name_of_textview) " (inside onCreate)
      and than
      " private lateinit var workingsTV: TextView " (above and outside onCreate)

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

    after pressing backspace button its not working properly

  • @AyushRaj-ml5nf
    @AyushRaj-ml5nf 2 года назад +1

    if ( timesDivision.isEmpty() ) return""
    can anyone please explain why this line is written ??

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

      If the list returned by the timeDivide function is empty, we want the function that called it to return an empty string to the result.

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

    Great work!

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

    The kotlin extensions plugins not working.
    it's saying that "the 'kotlin-android-extensions' gradle plugin is deprecated"

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

      Ah yes, I built this tutorial using synthetics, when the new way is view bindings.
      Have you used view bindings before?

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

      Thanks. I got it now.

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

      @@preetthee Could you share your github code repo link? its not working for me as well. And since I'm new, I'm unable to figure out how to use view bindings

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

      @@CodeWithCal Hey Cal, I know this is old but can you explain how to use view bindings? I tried to google it, but the tutorial I am using is not breaking it down easily. If you know of a good tutorial out there, that would work.

  • @johns.5298
    @johns.5298 2 года назад

    1:46 what did you do after saying 20dp? It’s like a star symbol and then it gets copied below

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

    hi how i can change my out put from
    160000.0
    to
    16,000

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

      Replace result.toString
      With a check to remove decimal place if not necessary, you could use a string formatter or round the float.
      discuss.kotlinlang.org/t/how-do-you-round-a-number-to-n-decimal-places/8843

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

      @@CodeWithCal thank you so much

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

    7:05 small bug, forgot to tab canAddOperator=true, because otherwise there can be a problem with . and /

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

    Bro I make caculeter o m g thanks you

  • @omur.bilgili
    @omur.bilgili 3 года назад +2

    it have some bugs, but its nice

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

    how to code for +/- sign can you please give any code for it I tried it but my functionality didn't work

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

      I don't have any code as of right now. But definitely possible good luck

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

    hi it was awesome
    my division and multiply is not working

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

      🤔 entirely possible I've overlooked something. What have you found?

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

      @@CodeWithCal I am new to this, I just followed your code but my divide and multiplication button is not working

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

      ​@@aanjaliiii Programming can be tricky business. And things don't necessarily always work the first time. But don't be discouraged keep trying and you will get there.
      Try to understand why the multiplication and division isn't working and then if you are still stuck ask a specific question.
      General statements like it doesn't work makes it very difficult for me or anyone else to help with the problem.
      Apologies if thats a little blunt.

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

      @@CodeWithCal it's ok.. I get your point

  • @usaakshayadhana3149
    @usaakshayadhana3149 Год назад +2

    Explain things in much more details. I think it is not for absolute beginners.

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

    Im learning the android right now , but when I added the kotlin android extension, it shows errors that says the extentions not found. anyone can help me?

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

      View Bindings are the way to go now
      developer.android.com/topic/libraries/view-binding

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

      @@CodeWithCal thanks a lot .

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

    i got a fail to compile values file error
    what should ı do?

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

      Hmm what does Google say with that error 🤔

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

    Nice video but it was fast

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

    whenever i press on any operator my app automatically ends .?.?.?

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

      What does it say in your console. Googling the exception is usually a good first step

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

      @@CodeWithCal it’s throwing a null exception

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

      Nice. So trace back why it's null. Or make it null safe?

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

    mine remained orange throught all the buttons

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

      Should just be a change in the XML somewhere to change some buttons to be white

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

    why you use light theme

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

      I use both sometimes, doesn't really bother me either way

  • @SaidxonQodirov-l3d
    @SaidxonQodirov-l3d 8 месяцев назад

    4:30

  • @マサト-m7d
    @マサト-m7d 2 года назад

    すごい

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

      ありがとうございます

  • @gidekazadi7503
    @gidekazadi7503 28 дней назад

    A tutorial is meant to teach but you are just there doing your thing for us to watch, no teaching at all in this video. And the speed is just 😢

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

    How can I add the parentheses?

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

      Probably a bit complicated for a RUclips comment. I have been thinking if doing a part 2 of this tutorial. If I do I'll be sure to include.
      It is possible good luck 🍀

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

      Thanks I'm looking forward to it.

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

    pls add modulo

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

    Way too fast

  • @shohruzbek
    @shohruzbek 6 месяцев назад

    very fast ((((

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

    Please give me , sorscod calculator

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

    Troppo veloce

  • @AlexanderMoyer-k3b
    @AlexanderMoyer-k3b 7 месяцев назад

    jesus christ slow down
    pausing and playing your video is kinda defeating the purpose.
    why dont you make a write up?

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

    idk if you'll see this now but can i get help on kt. page. for some reason workingsTV and resultsTV are in red?

    • @vascocastel-branco3370
      @vascocastel-branco3370 Год назад +1

      you have to create a variabel like this
      " name_of_variable = findViewById(R.id.name_of_textview) " (inside onCreate)
      and than
      " private lateinit var workingsTV: TextView " (above and outside onCreate)

    • @micahellis9598
      @micahellis9598 10 месяцев назад

      @@vascocastel-branco3370 THANK YOU!! this is the answer