> For the complete documentation index, see [llms.txt](https://yanxiaodi.gitbook.io/xamarin-mvvmcross-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yanxiaodi.gitbook.io/xamarin-mvvmcross-handbook/using-mvvmcross-to-create-your-first-xamarin-app/creating-the-android-project/adding-the-view-class.md).

# Adding the View class

As I mentioned, we have added the `ViewModel` and the View, but we did not link them together. Now create a new folder called Views in the root folder of the `MvvmCrossDemo.Droid` project and add a class called `FirstView.cs` in the Views folder, as shown below:

```csharp
using Android.App;
using Android.OS;
using MvvmCross.Platforms.Android.Presenters.Attributes;
using MvvmCross.Platforms.Android.Views;

namespace MvvmCrossDemo.Droid.Views
{
    [MvxActivityPresentation]
    [Activity(Label = "First View")]
    public class FirstView : MvxActivity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.FirstView);
        }
    }
}
```

Make sure the `FirstView` inherits from the `MvxActivity` class. Now `MvvmCross` will help us build the connection between the View and the `ViewModel`.

Test the Android project on the phone. We should see the application like this:

![](https://847068821-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPK_0Nj6gmm5SSTHfcs%2F-LPPC_JJWeBJc8tmZexw%2F-LPPE4FeFkxjT6uxToMy%2Fimage.png?alt=media\&token=092fbddc-5786-4c9f-9cf7-b4bbb930ce42)
