5

Make a CALCULATOR App with Xamarin Android #2 (Code)

Learn how to code the logic of this simple calculator in C#. It’s easier than you think and it is certainly a lot of fun!

 

This post contains all the code that’s been written in this YouTube video.

 

 

You can also check out the GitHub repository: https://github.com/ResoCoder/Simple-Calculator—Xamarin-Android

MainActivity.cs

 

Matej Rešetár
 

Matej is an app developer with a knack for teaching others. If he's not programming, making tutorials or doing other business, he's mostly working out, listening to audiobooks and taking cold showers.

  • rakesh Lilhare says:

    @operator = newoperator what is this

    • If you calculate by not pressing the “=” button but you rather press an operator like “+” it will calculate. Then it will put the operator (in this case “+”) after the result of the calculation so you can continue calculating with that result.

  • usafoi says:

    @rakesh Lilhare
    trust me , his channel has LOTS of useful tuto, I’ve search for many guides (but apparently results from India floods my results). When I found Reso coder no more Hin-glish, thx resocoder!

  • Khoji says:

    it is not working everytime I press the buttons the app is crashing and there is an error message that tells something about the android:onClick

  • >