Calculator App Android Studio Kotlin Tutorial

  Рет қаралды 84,493

Code With Cal

Code With Cal

Күн бұрын

Пікірлер: 127
@wendiiyau
@wendiiyau 2 жыл бұрын
⌫ 5:02 This is the symbol he uses, just copy paste it~
@sushantchoudhary444
@sushantchoudhary444 2 жыл бұрын
thanks bro you saved me
@filipecomimesmo
@filipecomimesmo 2 жыл бұрын
for those searching for it, the name of the symbol is "erase to the left".
@asmaatharwt5209
@asmaatharwt5209 2 жыл бұрын
you can get it from vector resource its name is"backspace" and treat with butten as imageButton
@LuckAnchovy
@LuckAnchovy 11 ай бұрын
Thanks bro, you helped me!
@exejar
@exejar 5 ай бұрын
kudos to you sir.
@satyamsharma8240
@satyamsharma8240 3 жыл бұрын
Slow it for us small people
@crazydvae
@crazydvae Жыл бұрын
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 жыл бұрын
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 жыл бұрын
Thanks a lot, really kind of you to say :)
@bramantawisnu
@bramantawisnu 3 жыл бұрын
i use 0.25 speed ,, becouse that very fast,, like magic tric 😁
@CodeWithCal
@CodeWithCal 3 жыл бұрын
🪄
@salomeshunamon
@salomeshunamon 11 ай бұрын
kotlin-android-extensions is depreciated. Can you make an update video with how to change this finished project so that it's compatible?
@chocolatelover326
@chocolatelover326 9 ай бұрын
Exactly bcz of translation it get hide...
@pradipbarvaliya9947
@pradipbarvaliya9947 2 жыл бұрын
awesome explanation and development thank you Cal
@theblueplanet3576
@theblueplanet3576 10 ай бұрын
My takeaway from this video was using of styles. Thanks 🙏
@p.soumyasundarsubudhi6007
@p.soumyasundarsubudhi6007 Жыл бұрын
Thanks for the tutorial it helped me
@AdishaFdo
@AdishaFdo 2 жыл бұрын
Thank you! Was very helpful!
@theunlovedtoy
@theunlovedtoy Жыл бұрын
great video Cal...
@Leeminduc
@Leeminduc 3 жыл бұрын
Thank Cal, this video help so much !
@reniac3128
@reniac3128 Жыл бұрын
What do I do?
@alanromero8018
@alanromero8018 3 жыл бұрын
Buen video!! buenisimo!! saludos desde Argentina. Nuevo Sub :)
@abeer7373
@abeer7373 3 жыл бұрын
Thaaank you You're a lifesaver..!
@gauravmalik9c867
@gauravmalik9c867 3 жыл бұрын
Love you bro
@meebolover1777
@meebolover1777 2 жыл бұрын
My buttons are not calling the the style variables. They are just remaining default
@elnino9139
@elnino9139 Жыл бұрын
Plugin with id 'kotlin-androids-extensions' not found.
@HugoLopezDev
@HugoLopezDev 2 жыл бұрын
Thanks for teaching this. New subscriber
@priyanshushrivastava4453
@priyanshushrivastava4453 2 жыл бұрын
sir i cant able to access workingsTV directly in main activity what is the solution sir?
@kgomotso_nxumalo
@kgomotso_nxumalo 2 жыл бұрын
same
@ashenmalindu73
@ashenmalindu73 2 ай бұрын
Good tutorial, but it feels a bit slow. Maybe speed it up a little? 😊
@tafman
@tafman 3 жыл бұрын
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 3 жыл бұрын
i also have same doubt. How you are able to enter that button
@tafman
@tafman 3 жыл бұрын
@@rishabnegi2334 Found the solution... Its a code that you'll enter in the space given there
@CodeWithCal
@CodeWithCal 3 жыл бұрын
I just copied the character from the internet ;)
@Alvarez_Isaac
@Alvarez_Isaac 10 ай бұрын
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!
@tnt_popcorn__
@tnt_popcorn__ Жыл бұрын
I did the view binding but still not working. I almost give up
@lordcinder
@lordcinder Жыл бұрын
Play this at .75x speed. Your welcome
@CodeWithCal
@CodeWithCal Жыл бұрын
😂
@RaneemSarminy
@RaneemSarminy 9 ай бұрын
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.
@p.soumyasundarsubudhi6007
@p.soumyasundarsubudhi6007 Жыл бұрын
Can I know how to add the modulo operations in the existing code given by you
@emilianomartinezpena5420
@emilianomartinezpena5420 3 жыл бұрын
Gracias este video es asombroso
@omerbabo
@omerbabo Жыл бұрын
Thank you brother
@AyushRaj-ml5nf
@AyushRaj-ml5nf 2 жыл бұрын
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.
@wendiiyau
@wendiiyau 2 жыл бұрын
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 жыл бұрын
The way google would like us to do it now is with view binding :)
@morfeoraikonen
@morfeoraikonen 3 жыл бұрын
Great video keep it going , new subscribe right here :D
@CodeWithCal
@CodeWithCal 3 жыл бұрын
Thanks 😊
@AYJ959
@AYJ959 2 жыл бұрын
after pressing backspace button its not working properly
@preetthee
@preetthee 3 жыл бұрын
The kotlin extensions plugins not working. it's saying that "the 'kotlin-android-extensions' gradle plugin is deprecated"
@CodeWithCal
@CodeWithCal 3 жыл бұрын
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 Жыл бұрын
@@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.
@etokamo
@etokamo 2 жыл бұрын
7:05 small bug, forgot to tab canAddOperator=true, because otherwise there can be a problem with . and /
@groverkennedy2049
@groverkennedy2049 3 жыл бұрын
Thanks a lot my dude
@vascocastel-branco3370
@vascocastel-branco3370 Жыл бұрын
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!!
@ashfaqueshaikh4177
@ashfaqueshaikh4177 Жыл бұрын
U can use view binding
@calibur5518
@calibur5518 3 жыл бұрын
hi how i can change my out put from 160000.0 to 16,000
@CodeWithCal
@CodeWithCal 3 жыл бұрын
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 3 жыл бұрын
@@CodeWithCal thank you so much
@thehackerstnt2147
@thehackerstnt2147 2 жыл бұрын
Man that was tooooooooooooooooooooooooo fast 😳
@mnarian
@mnarian Жыл бұрын
workingTv is nnot funtional in my program
@vascocastel-branco3370
@vascocastel-branco3370 Жыл бұрын
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)
@aymanachalhe9136
@aymanachalhe9136 3 жыл бұрын
good work!
@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 жыл бұрын
@@CodeWithCal thanks a lot .
@mr_waras
@mr_waras Жыл бұрын
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
@umarajmal6216
@umarajmal6216 2 жыл бұрын
whenever i press on any operator my app automatically ends .?.?.?
@CodeWithCal
@CodeWithCal 2 жыл бұрын
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 жыл бұрын
Nice. So trace back why it's null. Or make it null safe?
@delirarian3388
@delirarian3388 3 жыл бұрын
It was very useful
@purvpatel8124
@purvpatel8124 3 жыл бұрын
how to code for +/- sign can you please give any code for it I tried it but my functionality didn't work
@CodeWithCal
@CodeWithCal 3 жыл бұрын
I don't have any code as of right now. But definitely possible good luck
@SumoPixelPlay
@SumoPixelPlay 2 жыл бұрын
Bro I make caculeter o m g thanks you
@johns.5298
@johns.5298 3 жыл бұрын
1:46 what did you do after saying 20dp? It’s like a star symbol and then it gets copied below
@johns.5298
@johns.5298 3 жыл бұрын
I got it lol. It’s not a star symbol
@CodeWithCal
@CodeWithCal 3 жыл бұрын
🥳
@aanjaliiii
@aanjaliiii 3 жыл бұрын
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 жыл бұрын
​@@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
@robinkalostyan4728
@robinkalostyan4728 3 жыл бұрын
i got a fail to compile values file error what should ı do?
@CodeWithCal
@CodeWithCal 3 жыл бұрын
Hmm what does Google say with that error 🤔
@omur.bilgili
@omur.bilgili 3 жыл бұрын
it have some bugs, but its nice
@rutgerpronk2754
@rutgerpronk2754 Жыл бұрын
Bro were not coding with cal you are coding we are copying. i dont like ur super fast phase video's
@rutgerpronk2754
@rutgerpronk2754 Жыл бұрын
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.
@junekang3168
@junekang3168 3 жыл бұрын
Great work!
@lokesharora4037
@lokesharora4037 2 жыл бұрын
why you use light theme
@CodeWithCal
@CodeWithCal 2 жыл бұрын
I use both sometimes, doesn't really bother me either way
@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
@usaakshayadhana3149
@usaakshayadhana3149 2 жыл бұрын
Explain things in much more details. I think it is not for absolute beginners.
@CodeWithCal
@CodeWithCal 2 жыл бұрын
😋
@tknsoftwarestudio640
@tknsoftwarestudio640 3 жыл бұрын
How can I add the parentheses?
@CodeWithCal
@CodeWithCal 3 жыл бұрын
Probably a bit complicated for a KZbin 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.
@michaelbreezywilberforce2646
@michaelbreezywilberforce2646 2 жыл бұрын
Nice video but it was fast
@darrenmendez7262
@darrenmendez7262 2 жыл бұрын
pls add modulo
@SaidxonQodirov-l3d
@SaidxonQodirov-l3d Жыл бұрын
4:30
@マサト-m7d
@マサト-m7d 3 жыл бұрын
すごい
@CodeWithCal
@CodeWithCal 3 жыл бұрын
ありがとうございます
@gidekazadi7503
@gidekazadi7503 5 ай бұрын
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 😢
@IslamicAuliyaLife
@IslamicAuliyaLife 3 жыл бұрын
Please give me , sorscod calculator
@CodeWithCal
@CodeWithCal 3 жыл бұрын
Link in description ☝️
@coltsfancolts
@coltsfancolts Жыл бұрын
Way too fast
@shohruzbek
@shohruzbek 11 ай бұрын
very fast ((((
@manuelmuni2403
@manuelmuni2403 3 жыл бұрын
Troppo veloce
@AlexanderMoyer-k3b
@AlexanderMoyer-k3b Жыл бұрын
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 2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@vascocastel-branco3370 THANK YOU!! this is the answer
Learn Kotlin in 12 Minutes
12:01
Rahul Pandey
Рет қаралды 354 М.
How to make a Calculator in Android Studio | 2024
21:24
Easy Tuto
Рет қаралды 285 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
How to Build a Calculator with Jetpack Compose - Android Studio Tutorial
43:24
StopWatch Timer on Service Android Studio Kotlin Tutorial
8:37
Code With Cal
Рет қаралды 28 М.
04  Kotlin Programming for Android in 30 Minutes | Creating a Calculator App Step-by-step
38:45
Creating Simple Calculator App in Android Studio using Kotlin
22:07
Coding for Mobile
Рет қаралды 45 М.
The Ultimate Gradle Kotlin Beginner's Crash Course For 2025
42:17
Philipp Lackner
Рет қаралды 31 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
Create a Calculator App in Minutes - Android Studio Tutorial
19:29
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН