Make a Simple Android App – Xamarin Android Tutorial

6  comments

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

Main.axml

 

MainActivity.cs

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪 and guitar 🎸

You may also like

Flutter Custom & Staggered Page Transition Animation Tutorial

Flutter Firebase & DDD Course [5] – Sign-In Form Logic

  • Hi,

    nice tutorial. Very well explained.
    I got stuck with some error messages though.
    At the end I have copied your original source code for both files into my project. (Did a restart on VS as well)
    But I still get the following error messages:
    ‘Resources.Layout’ does nor contain a definition for ‘Main’
    ‘Resources.Id’ does not contain a definition for ‘txtNumber’
    ‘Resources.Id’ does not contain a definition for ‘btnIncrement’
    ‘Resources.Id’ does not contain a definition for ‘btnDecrement’

    Could you gice some advice what went wrong?

  • One issue I’ve had is that for no obvious reason, I get

    Severity Code Description Project File Line Suppression State
    Error CS0103 The name ‘Resource’ does not exist in the current context KeyAttemp3 P:\C#\Android\KeyAttemp3\KeyAttemp3\MainActivity.cs 21 Active

    SetContentView(Resource.Layout.activity_main);

    Why is the section called Resources but it is accessed via Resource?

  • Hi, I am a new coder, build this code but error happened, its shown “CS0117 ‘Resource’ not include ‘id’ define…”
    I check tying again n again (android:id=”@+id/txtNumber”), clean/re-build too, but still experience this error, can you let me know whats wrong?

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    >