2

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

In this tutorial you will learn how to make a simple android calculator app. More precisely, in this first part we will be dealing with the UI – writing XML, using LinearLayout, GridLayout, support libraries, custom styles and more Android goodness!

 

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

Main.axml

 

styles.xml

 

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.

  • RONALD GANS says:

    I get the following error:

    Severity Code Description Project File Line Suppression State
    Error No resource found that matches the given name (at ‘theme’ with value ‘@style/AppTheme’). Calc3 P:\C#\Android\Calc3\Calc3\obj\Debug\MonoAndroid81\android\manifest\AndroidManifest.xml 7

    And here’s the Manifest file:

  • RONALD GANS says:

    Also when I tried to send the comment I got this:

    Notice: Trying to get property of non-object in /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 717

    Notice: Trying to get property of non-object in /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 727

    Warning: Cannot modify header information – headers already sent by (output started at /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php:717) in /home/resocode/public_html/wp-content/plugins/jetpack/modules/subscriptions.php on line 764

    Warning: Cannot modify header information – headers already sent by (output started at /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php:717) in /home/resocode/public_html/wp-content/plugins/jetpack/modules/subscriptions.php on line 770

    Warning: Cannot modify header information – headers already sent by (output started at /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php:717) in /home/resocode/public_html/wp-includes/comment.php on line 541

    Warning: Cannot modify header information – headers already sent by (output started at /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php:717) in /home/resocode/public_html/wp-includes/comment.php on line 542

    Warning: Cannot modify header information – headers already sent by (output started at /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php:717) in /home/resocode/public_html/wp-includes/comment.php on line 543

    Warning: Cannot modify header information – headers already sent by (output started at /home/resocode/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php:717) in /home/resocode/public_html/wp-includes/pluggable.php on line 1219

    And here’s the Manifest file:

  • >