What is Xamarin and Xamarin Forms?
- Xamarin is a cross-platform to develop multi-platform Applications.
- Xamarin is a Shared code(C#), But Separately Design UIs Android (Java), Windows (C#), iOS (Objective C & Xcode).
- Xamarin forms UIs & shared code (C#) are same in all the projects. To develop multi-platforms Applications and run all the projects (Android, Windows, iOS) at the same time.
Prerequisites
- Visual Studio 2017 Enterprise
The steps given below are required to be followed in order to design TableLayout View in Xamarin Android, using Microsoft Visual Studio 2017.
Step 1
- Go to the Visual Studio 2017.
- Click File -> New -> Project.

Step 2
- In this step, click C# -> Android -> Blank App (Android).
- Enter the Application name, followed by clicking Blank App = A project for creating a Xamarin.Android Application.

Step 3
Afterwards, go to Open Solution Explorer Window and click Resources Folder, followed by clicking Layout Folder -> Open axml.
Step 4
In this step, go to Click Main.axml page, insert the code given below in Main.axml and save it.
- <?xml version="1.0" encoding="utf-8"?>
- <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:background="#d3d3d3"
- android:layout_height="fill_parent"
- android:stretchColumns="1">
- <TableRow>
- <TextView
- android:text="First Name"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:textColor="@android:color/black" />
- <EditText
- android:width="100px"
- android:layout_width="fill_parent"
- android:layout_height="30dp"
- android:textColor="@android:color/black" />
- </TableRow>
- <TableRow>
- <TextView
- android:text="Last Name"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:textColor="@android:color/black" />
- <EditText
- android:width="50px"
- android:layout_width="fill_parent"
- android:layout_height="30dp"
- android:textColor="@android:color/black" />
- </TableRow>
- <TableRow>
- <TextView
- android:text="Salary"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:textColor="@android:color/black" />
- <EditText
- android:width="100px"
- android:layout_width="fill_parent"
- android:layout_height="30dp"
- android:textColor="@android:color/black" />
- </TableRow>
- <TableRow>
- <TextView
- android:text="Occupation"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:textColor="@android:color/black" />
- <EditText
- android:width="50px"
- android:layout_width="fill_parent"
- android:layout_height="30dp"
- android:textColor="@android:color/black" />
- </TableRow>
- <TableRow>
- <Button
- android:text="Cancel"
- android:layout_width="wrap_content"
- android:layout_margin="10dp"
- android:layout_height="wrap_content"
- android:background="@android:color/holo_blue_light" />
- <Button
- android:text="Submit"
- android:width="100px"
- android:layout_margin="10dp"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:background="@android:color/holo_blue_bright" />
- </TableRow>
- </TableLayout>








Joe WilsonPosted May 12, 2017, 12:18 AM
Thank you very much for sharing.
Saravanakumar SekaranPosted May 10, 2017, 3:07 AM
Nice article keep sharing..............