How to Build a Calculator with Jetpack Compose - Android Studio Tutorial

preview_player
Показать описание
In this video, we'll build a simple calculator using Jetpack Compose :)

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:

Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!

Join this channel to get access to perks:

Get the source code for this video here:

Join my Discord server:

You like my free content? Here you can buy me a coffee:
Рекомендации по теме
Комментарии
Автор

Thanks as always for the great content, Philipp. One modest suggestion that I feel could be helpful: I'd love to see @Preview annotations used and see the UI built iteratively. It's easier to see the effects of the code that's being written when the execution of the code happens piecemeal. It's a little harder to string together when it happens all at once🙂.

To be fair, coding along is an option, but sometimes I like to just hang back and enjoy the show.

b_mathemagical
Автор

i've been learning on the side and had to take a break because work stuff was keeping me busy, holy cow the new version launches the app super fast now when i recompile my code, gotta give the props for the android team

dontforgettovote
Автор

Thank you for this! As you said I was really overwhelmed with all the complex architecture and libraries in other tutorials, this is what I needed at my level! Please make more!

ninelivesforge
Автор

You are a really good teacher. I've been learning Kotlin mainly by watching your videos and it's been a great experience.

brunonoveli
Автор

You are a genious. I expect one day to be able to think all the things as fast as you do with Kotlin

albertbo
Автор

I'm gonna upgrade this to the scientific level.

nipunkumarit
Автор

Really helpful videos for someone who's re-qualifying from data analytics world to Android. Keep up the good work!!!

RaivoDoc
Автор

Created it successfully, and modified it a little bit 🥰 Thanks Philipp, you are the best teacher ever!

a-zlearning
Автор

I think this would actually be _simplified_ by adding support for more operations, because now you just input a big string of characters and finally calculate it by hitting =. So all the operation buttons can just be the same action as the digits.

Also you could cut the repetitive code down very simply by defining a local function with the 4 params which vary and packing the calls to that on a single line for each button.

trejkaz
Автор

Wonderful! Was wondering why you used sealed class vs enum for operations and I see you have another video for that. :) Mind-blown! ❣️

sanjaybhatikar
Автор

I already made a similar one in java, having something similar in compose is a good way for me to learn stuff. Thank you philip, now i can understand how to work in jetpack compose the correct way

mirchm
Автор

Great one buddy. Helped a lot. Thanks!

sarthakvatsa
Автор

Thanks dude, it was so clear to understand.

mracipayam
Автор

I experience joy of elegant coding in Jetpack Compose without messy xml. Kotlin with Compose is now at the same level as SwiftUI without messy .xib associated with storyboard in UIKit. Great lecture, Thanks.

ingyukoh
Автор

reallly helpful, thanks a lot philipp

JJHaz
Автор

Thank you, this was very helpful as always

bugslayer-sama
Автор

thanks for the great video.
there is a bug in 36:42 where for "number2" decimal you use the "number1" variable

hasanforaty
Автор

Thank you so much, great content love your videos

oubihinoureddine
Автор

Another You're spectacular, I've been following your videos and honestly, I like you, you're so wonderful...thanks for your time...

ailekzavy
Автор

Hello Phillip, so yeah, I did the assignment. I can carry out multiple operations. Though, I changed the layer above to contain two textviews, one for displaying input and the other for displaying result. Thanks once again.

miracleukaka