Introduction
Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Visual Studio, the Xamarin Studio is also available.
Prerequisites
- Visual Studio 2015 Update 3
The steps, given below, are required to be followed in order to create a ProgressDialog in the Xamarin Android app, using Visual Studio 2015.
Step 1
Click File--> select New--> select Project. The project needs to be clicked after opening all the types of projects in Visual Studio. Or press "Ctrl+Shift+N".
Step 2
After opening the New Project, select Installed-->Templates-->Visual C#-->Android-->choose the Blank app (Android).
Now, give your Android app a name (Ex:sample) and give the path of your project. Afterwards, click OK.
Step 3
Next, go to the Solution Explorer and select Resource-->Layout-->double click to open main.axml page. If you select Source mode, you can write the xaml code. If you select the Designer mode, you can design your app.
Next, go to the Solution Explorer and select Resource-->Layout-->double click to open main.axml page. If you select Source mode, you can write the xaml code. If you select the Designer mode, you can design your app.
Step 4
Opening the main.axml file will open the main page designer. You can design the page as per your expertise, selecting any mode- Source or Designer.
Next, delete the default "hello world" button from the source panel by deleting the button code. Also, delete the C# button action code from the MainActivity.cs page.
Step 5
Now, go to the toolbox window. You need to scroll down and you will see all the tools and controls. Drag and drop a Button.
Step 6
Now, go to the Properties window. You need to edit the Button Id Value(EX: android:id="@+id/editText").
Step 7
In this step, go to the Main.axml page Source Panel and note down the Button id value.


Join the conversation! Your thoughts help the community grow.