Xamarin.android using the tutorial to create your first Android app

Source: Internet
Author: User

<xamarin Platform Trial Version >

In this article, we'll use Xamarin to create the first Android app.

After you install Xamarin, click File-> New Project in Visual Studio and you should be able to see an Android option in the available templates.

Continue and select Blank App (Android), and then click OK.

Xamarin continues to run and then creates your first "Hello World" application.

If you only run the application, make sure that Xamarin Android player with the emulator is running.

You can see the start and run of your first native Android app.

After you continue and click the button, you will see the button text updated, and how many times the text will be updated when you click the button.

On top of that, your first Android app was created successfully!

But here we'll show you something more: an easy way to create an Android app using Visual Studio. Xamarin developer James Montemagno created a real template package in Visual Studio, where you can download the trial. If you download the extension and install it, two new options will appear in Android under your Visual Studio template options.

Select Android Navigation Drawer App AppCompat, and then continue and create the project. The project structure should be very familiar, very similar to our first application, but the app references the Xamarin Android support Design Library.

If you are just running the application on the emulator, you will see a very good starting point for your application.

If you click on a side item, the APP drawer will be displayed.

interested friends can click to see more articles about Xamarin !

Xamarin.android using the tutorial to create your first Android app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.