Designing Login System UI In Xamarin Android App

Xamarin is a cross-platform tool used to develop applications for Android, Windows, and iOS . Today, designing is really easy for every developer who has a little knowledge of a little bit of programming and front-end. So, here is the simple User Interface design for Login System. Here, I will show how to create a login system in Android using Xamarin in Visual Studio RC 2017.

Requirements

  • Visual Studio RC 2017.
  • Xamarin Studio packages should be installed.
  • Self confidence with creativity.

Steps to be followed

Please follow the following steps to create Login System User Interface Design.

Step 1

Launch Visual Studio RC 2017 and go to File >>New >> Project.

Step 2

Then, you need to select the Android template from the list, name the Application, set location, and click "OK".

 

Step 3

Here we go! Our new project has been created. Now, we need to navigate to Designer page. To open the designer page, you need to open Solution Explorer from View >> Solution Explorer.

Step 4

Then, to open Designer page, select the following.

Solution Explorer >> Resources >> Layout >> Main.axml.
 
 

Step 5

Add the following code in Main.axml source page and then, open and view the Designer page.

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  3.     android:orientation="vertical"  
  4.     android:layout_width="match_parent"  
  5.     android:layout_height="match_parent"  
  6.     android:background="@android:color/background_light">  
  7.         <TextView  
  8.             android:text="Create An Account"  
  9.             android:textAppearance="?android:attr/textAppearanceLarge"  
  10.             android:layout_width="match_parent"  
  11.             android:layout_height="0dp"  
  12.             android:id="@+id/textView1"  
  13.             android:layout_weight="1"  
  14.             android:background="@android:color/darker_gray"  
  15.             android:textStyle="bold"  
  16.             android:textSize="25sp"  
  17.             android:gravity="center" />  
  18.         <Button  
  19.             android:text="Sign IN"  
  20.             android:layout_width="match_parent"  
  21.             android:layout_height="0dp"  
  22.             android:id="@+id/button1"  
  23.             android:layout_weight="1"  
  24.             android:textSize="25sp"  
  25.             android:background="@android:color/holo_blue_light" />  
  26.         <TextView  
  27.             android:text="OR"  
  28.             android:textAppearance="?android:attr/textAppearanceLarge"  
  29.             android:layout_width="match_parent"  
  30.             android:layout_height="0dp"  
  31.             android:id="@+id/textView2"  
  32.             android:layout_weight="1"  
  33.             android:background="@android:color/darker_gray"  
  34.             android:textSize="25sp"  
  35.             android:textColor="@android:color/background_light"  
  36.             android:gravity="center" />  
  37.         <Button  
  38.             android:text="Sign Up"  
  39.             android:layout_width="match_parent"  
  40.             android:layout_height="0dp"  
  41.             android:id="@+id/button2"  
  42.             android:layout_weight="1"  
  43.             android:textSize="30sp"  
  44.             android:background="@android:color/holo_blue_dark" />  
  45.     </LinearLayout>  
Step 6

Now, run the app using Visual Studio Android Emulator and press the green "Start" button in Debug menu. Our app gets executed successfully.

Note - Select which version of Android you want to run the app on.
 
 

Output

The following will be the output of our Login System app. 



If you have any doubts, please comment below. I will continue the next article about "Customizing the buttons in this Login System Design." If you are interested in Xamarin Android Development, follow my profile to get updates.
 
Thank you for reading !!

Up Next
    Ebook Download
    View all
    Learn
    View all