Calculator App Android Studio Kotlin Tutorial

preview_player
Показать описание
How to create a simple calculator app using Android Studio and Kotlin. A great beginner programming project. In this example Android app we build a basic calculator from scratch, meaning that no external or 3rd party libraries are used.

In the first part of the tutorial we build a calculator grid layout using constraint view, linear layout and buttons. We also use styles to make managing the layout easier, if changes are required in the future.

In the second part of the tutorial we connect our buttons as well as implement all of the logic for our calculator be able to add, subtract, divide and multiply.

Calculator Source Code:

Java Android Studio Calculator:

⏱️ TIMESTAMPS ⏱️
00:00 - Intro
00:47 - Colors Themes
01:28 - Workings XML
02:30 - Calculator Grid XML
05:26 - Build Gradle
05:37 - Workings Kotlin
07:23 - Calculate Results Kotlin
11:43 - Calculator Test

#CalendarAppTutorial #LearnAndroidStudio #AppDevelopment
Рекомендации по теме
Комментарии
Автор

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

wendiiyau
Автор

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?

crazydvae
Автор

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

bramantawisnu
Автор

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

hamzaakgun
Автор

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

salomeshunamon
Автор

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

theblueplanet
Автор

awesome explanation and development thank you Cal

pradipbarvaliya
Автор

What do I do? <LinearLayout will not work for some reason even though I'm typing the code the exact same way

reniac
Автор

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

meebolover
Автор

Thaaank you You're a lifesaver..!

abeer
Автор

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

vascocastel-branco
Автор

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

priyanshushrivastava
Автор

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

elnino
Автор

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

wiki-SMART
Автор

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

alanromero
Автор

workingTv is nnot funtional in my program

muhammadmohsinnaeem
Автор

Thanks for teaching this. New subscriber

HugoLopezDev
Автор

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

tnt_popcorn__
Автор

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

Alvarez_Isaac
Автор

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.

RaneemSarminy