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. The Xamarin Studio is available in Visual Studio too.
Prerequisites
- Visual Studio 2015 Update 3.
The steps, given below, are required to be followed in order to create an autoLink using TextView in a Xamarin Android app.
Step 1
Click File--> select New--> select Project. Or, click (Ctrl+Shift+N).

Step 2
After opening the New Project, go to Installed >> Templates >> Visual C# >> Android >> Blank App (Android).
Now, give your Android app a name (Ex:sample) and give the path of your project. Afterwards, click OK.

Step 3

Step 3
Next, go to the Solution Explorer. Go to Resource --> Layout --> double click to open Main.axml page.

Step 4
The Main.axml file will open the main page designer. In this page, you can select the mode (Designer or Source) as per your choice.

Next, delete the default "Hello World" button. For this, go to the source panel and delete the button code from there. Similarly, delete the C# button code from the MainActivity.cs page.
Step 5
Now, go to the Toolbox window. Now, scroll down to all the tools and controls. Drag and drop the TextView.

Step 6
In this step, open the String.xml page. Go to the Solution Explorer --> Resource --> Values --> String.xml.

Step 7
After opening the String.xml file, write the following XML code.
String.xml

Step 4
The Main.axml file will open the main page designer. In this page, you can select the mode (Designer or Source) as per your choice.

Next, delete the default "Hello World" button. For this, go to the source panel and delete the button code from there. Similarly, delete the C# button code from the MainActivity.cs page.
Step 5
Now, go to the Toolbox window. Now, scroll down to all the tools and controls. Drag and drop the TextView.

Step 6
In this step, open the String.xml page. Go to the Solution Explorer --> Resource --> Values --> String.xml.

Step 7
After opening the String.xml file, write the following XML code.
String.xml
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <string name="Hello">Hello World, Click Me!</string>
- <string name="ApplicationName">Auto_Link</string>
- <string name="website">www.xamarin.com</string>
- </resources>










Join the conversation! Your thoughts help the community grow.